The common method to synthesize g-C3N4 involves the thermal polymerization of nitrogen-rich precursors such as melamine, dicyandiamide, or urea. The process typically occurs at temperatures ranging from 500°C to 600°C in an inert atmosphere. This method yields bulk g-C3N4, which can be further processed to enhance its catalytic properties.