Flower-like Co2C enables photothermal catalytic CO2–epoxide cycloaddition with yields of up to ∼95% under solar light.