Melamine and cyanic acid were self-assembled into the supramolecular precursor through hydrogen bonding, and the precursor was treated by adding different amounts of H 2 O 2 . A series of polymeric carbon nitrides by H 2 O 2 were prepared by the high temperature calcination method, and these samples were characterized by various modern analysis methods. Taking Rhodamine B(RhB) as the pollutant, the effect of H 2 O 2 addition on the photocatalytic performance of polymeric carbon nitride was investigated. The results show that the addition of H 2 O 2 affected the structural composition of polymeric carbon nitride and enhanced its photocatalytic performance. The photocatalytic degradation of RhB by the polymeric carbon nitride with 30 mL H 2 O 2 was the best, and the degradation time of RhB to 90 % by this polymeric carbon nitride was at least 10 min earlier than that of the sample without H 2 O 2 . The degradation of RhB by the polymeric carbon nitride with 30 mL H 2 O 2 was 99.7 % within 30 min. This polymeric carbon nitride had good stability, and the degradation of RhB decreased slightly after cyclic experiment but the chemical groups remained unchanged.