A novel tactic, cold quenching, was adopted to prepare hierarchical 3D porous g-C3N4 without using any additive agents or templates. The combination of increased light absorption, improved electron-hole separation and enhanced adsorption of CO2, endows this fine structure with excellent photocatalytic CO2 reduction performance.