As organic semiconductor materials gain increasing prominence in the realm of photocatalysis, two carbon‐nitrogen materials, poly (heptazine imide) (PHI) and poly (triazine imide) (PTI), have garnered extensive attention and applications owing to their unique structure properties. This review elaborates on the distinctive physical and chemical features of PHI and PTI, emphasizing their formation mechanisms and the ensuing properties. Furthermore, it elucidates the intricate correlation between the energy band structures and various photocatalytic reactions. Additionally, the review outlines the primary synthetic strategies for constructing PHI and PTI, along with characterization techniques for their identification. It also summarizes the primary strategies for enhancing the photocatalytic performance of PHI and PTI, whose advantages in various photocatalytic applications are discussed. Finally, it highlights the promising prospects and challenges pertaining to PHI and PTI as photocatalysts.