A natural self-regeneration step for urea derived graphitic carbon nitride with platinum nanoparticles is found by simply opening the system to air in the dark under ambient conditions, following its solar-driven hydrogen production. The produced peroxides deactivate the graphitic carbon nitride. Release of weakly bound peroxides on the polymeric semiconductor surface is a crucial process for regeneration.