From the perspectives of environmental protection and efficiency, the use of clean and efficient photocatalytic reduction technology to recover gold from e-waste not only has a high economic value, but also reduces environmental pollution. However, it remains a challenge to construct adsorbents with simultaneously high photocatalytic activity, high stability, high capacity and high selectivity. Here, we demonstrate the application of D-π-A type thiazole-functionalized conjugated microporous polymer (termed BTD-TEA) for adsorption-photocatalytic recovery of gold from e-waste. The synthesized BTD-TEA not only have a narrow optical bandgap (1.75 eV) and excellent semiconductor properties, but also have ultra-high acid stability (stable in aqua regia). Surprisingly, BTD-TEA exhibits breakthrough gold adsorption capacity (4052.83 mg g−1), ultrafast adsorption kinetics, excellent selectivity and outstanding reusability under light conditions. This work provides a promising new adsorption-photocatalytic strategy for gold recovery from e-waste.