A new microwave-assisted method creates nitrogen-doped ultramicroporous carbon from coal in minutes, dramatically cutting energy use while achieving high CO2 capture performance.