Hydroxyl radicals (·OH) are important reactive oxygen species in environmental chemistry. The most efficient way to generate them is through a single-electron water-oxidation step, but this light-driven process is inefficient over inorganic semiconductor materials. Now, a judiciously designed polymeric carbon nitride has demonstrated high photocatalytic efficiency.