The recovery and repurposing of noble metal from electronic waste has attracted significant attention due to the tremendous benefits to the economy and environment but is of great challenge. Herein, a two-dimensional oxygen-rich COF material, named TbDa-COF, was fabricated via integrating 1,3,5-tris(4-formylphenyl)benzene (TFPB) and oxygen-rich 3,3'-dihydroxybenzidine (DHB) into a π-conjugated framework. TbDa-COF permits selective gold recovery through local coordination and electrostatic interaction, which is then followed via in situ reduction to form gold nanoparticles (AuNPs) within its skeleton. The experiment results exhibited satisfactory selectivity and favorable capture capacity (247.1 mg g