Remarkable improvements in the morphological and photophysical properties of the carbon nitride (CN) photocatalyst are achieved by simply mixing two different precursors, which partially terminates the co-polymerization of heptazine units and induces a defective structure. This defective CN is rich in mesopores, offering abundant reaction sites and exhibiting enhanced photoconductivity.