Typical non-metallic semiconductor carbon nitrides (CNs) have enormous potential in the field of photocatalysis, but the easy recombination of the photo-generated charges severely limits their practical applications.