<p>Bulk carbon nitride (C<sub>3</sub>N<sub>4</sub>) was
transformed into hierarchically porous, ultrahigh nitrogen content porous carbon
materials with calcium chloride (CaCl<sub>2</sub>) mediated thermal
activation. By systematically varying
two synthesis parameters (annealing time and CaCl<sub>2</sub>:C<sub>3</sub>N<sub>4</sub>
weight ratio) and analyzing both solids and volatile species produced during
the synthesis process, we investigated the fragmentation-recombination porogen
mechanism and show that Ca<sup>2+</sup><sub> </sub>effectively stabilizes
pyridinic nitrogen species through high temperature solvent-like interactions. Additionally, we characterized the
physicochemical properties of the resulting porous carbons with X-ray
photoelectron spectroscopy (XPS) and nitrogen (N<sub>2</sub>) adsorption and
tested their performance for CO<sub>2</sub> adsorption from 0 – 1.0 bar. We concretely show that, for these relatively
low surface area materials, surface chemistry has a strong impact on the
affinity for CO<sub>2</sub> adsorption, especially at low pressures relevant
for carbon capture. The best performing
sample, 200-0, exhibited large gravimetric CO<sub>2</sub> uptake at 25 °C and 0.1
bar (~1.9 mmol/g), large isosteric heat of adsorption (Q<sub>st</sub> > 45
kJ/mol), and incredible CO<sub>2</sub>/N<sub>2</sub> selectivity (S<sub>IAST</sub>
= 105) for a simulated binary gas feed of 10% CO<sub>2</sub> (1.0 bar, 25 °C) due
to its unique combination of dipole-rich surface chemistry (43 at% N), moderate
porosity (V<sub>pore</sub> = 0.6 cc/g), and relatively small N<sub>2</sub>
accessible surface area (180 m<sup>2</sup>/g).</p>