Porous graphitic framework (PGF) is a two-dimensional (2D) material that has emerging energy applications. An archetype contains stacked 2D layers, the structure of which features a fully annulated aromatic skeleton with embedded heteroatoms and periodic pores. Due to the lack of a rational approach to establishing in-plane order under mild synthetic conditions, the structural integrity of PGF has remained elusive and ultimately limited its material performance. Herein we report the discovery of the unusual dynamic character of the C=N bonds in the aromatic pyrazine ring system under basic aqueous conditions, which enables the successful synthesis of a crystalline porous nitrogenous graphitic framework with remarkable in-plane order, as evidenced by powder X-ray diffraction studies and direct visualization using highresolution transmission electron microscopy. The crystalline framework displays superior performance as a cathode material for lithium-ion batteries, outperforming the amorphous counterparts in terms of capacity and cycle stability.Porous graphitic frameworks, dynamic synthesis, basic aqueous conditions, cathode materials, lithium-ion batteries.