Nitrogen doped ordered mesoporous carbons with a 3-D body-centered cubic pore structure have been synthesized by means of a low-temperature autoclaving route under basic conditions, showing excellent performances for supercapacitors and CO2 capture.