Scientists underline the importance of defect engineering to promote catalytic performance by providing a simple and efficient way for modifying and optimizing metal-free semiconductor photocatalyst graphitic carbon nitride to solve the dual problems of environmental pollution and lack of fossil resources.