One of the main impediments during the CO2 photocatalytic reduction process is controlling a particular product's selectivity while keeping a high conversion rate. The adsorption and affinity of the catalyst for CO2 are key factors for achieving highly efficient CO2 reduction. Herein, we report a novel photocatalytic material, cobalt anchored onto a tetraphenylporphyrin-based hypercrosslinked polymer (HCP-CoTPP), which was designed for the efficient photoreduction of CO2 to CO with an impressive evolution rate of 1449.9 μmol g-1 h-1 and nearly 100% selectivity in the presence of [Ru(Bpy)3]Cl2 as a photosensitizer and sacrificial agent under visible light irradiation.