A highly ordered mesoporous carbon nanocage (OMC) direct synthesis method is introduced in this article. Petroleum pitch is chosen as a hydrophobic carbon precursor, tetrahydrofuran (THF) is used as solvent, the triblock copolymer F127 as structure directing agent, while the liquid crystal templating (LCT) is used as the templating mechanism, and the OMC was obtained via a one-step nanocasting method. Experimental results showed that the introduction of proper amounts of petroleum pitch and THF ratio does not hamper the synthetic process of the structure of OMC, thus a uniform carbon composite is finally formed. It was found that the as-prepared nanoporous carbon has a three-dimensional 7.5 nm-sized carbon nanocage network. Such a uniform mesoporous carbon material exhibits a high Brunauer–Emmett–Teller (BET) surface area (446.9 m2 g− 1) and a total pore volume (0.6 cm3 g− 1).