Recycling precious metal gold from electronic waste is not only environmentally beneficial but also economically attractive. Adsorption-based processes are appealing for their low energy requirements and minimal secondary waste generation. However, current adsorbents suffer from low adsorption capacities. Even the most promising porous adsorbents, such as metal-organic frameworks (MOFs) and covalent organic frameworks (COFs), typically have capacities less than 2 g g-1 for gold. Herein, we report a thiazole-linked 3D porphyrin-based COF, which shows an unprecedented adsorption capacity of 32.6 g g-1 towards gold via an adsorption-reduction mechanism. Such high capacity originates from the full exposure of various adsorption sites in the 3D open channels and their strong interaction with gold. DFT calculations reveal that the porphyrin motif is the strongest adsorption site through cation-π interactions. Transient absorption spectroscopy discloses the COFmediated photo-reduction process. The presented results establish noncovalent interactions in 3D COF scaffolds as a key principle for efficient and selective metal recovery, paving the way for urban mining of precious metals.