A novel bio-inspired conjugated microporous polymer (CMP) had been designed, synthesized and characterized. The mimics of [FeFe]-hydrogenase active sites were covalently attached to the CMP skeleton, which facilitates charge transfer between the light-harvesting moiety and active sites, and exhibited high performance in visible-light photocatalytic hydrogen evolution (2120 μmol·h−1·g−1) in an aqueous solution. The flower-like morphology, covalently linked framework and the “single active-site” effect derived from the porous skeleton were deemed to go a long way toward boosting the properties above. Interestingly, when the electron sacrifice agent (triethanolamine) was replaced by tetracycline, the CMP-based photocatalyst maintained the capability of photocatalytic hydrogen production (370 μmol·h−1·g−1) and realized efficient photodegradation of tetracycline simultaneously. This work provides a heuristic green dual-function strategy for constructing a sustainable and efficient photocatalytic system for hydrogen evolution with concurrent antibiotic residue degradation.