In this research, we successfully synthesized nitrogen-enriched microporous carbon through a meticulous process involving two different activation procedures. Initially, polybenzoxazine was carbonized at 800 °C to create a precursor material, which was then activated with two different activating agents (KOH and KMnO