It is highly desirable to convert CO2 to valuable fuels or chemicals by means of solar energy, which requires CO2 enrichment around photocatalysts from the atmosphere. Here we demonstrate that a porphyrin-involved metal-organic framework (MOF), PCN-222, can selectively capture and further photore…