The unique interconnected mesoporous structure and high specific surface area facilitate the diffusion and absorption of Na+, making ordered mesoporous carbon a promising candidate for the anode of sodium-ion batteries. However, low electronic conductivity and scanty defects cause unsatisfied sodium storage capacity. Heteroatoms doping is regarded as an efficient strategy to modify the physicochemical properties of carbonaceous materials and in this work, nitrogen and sulfur are simultaneously doped into the framework of ordered mesoporous carbon via a one-step thermal treatment. The N/S co-doped samples possess an enhanced electronic conductivity, rich defects, and improved Na+ adsorption capability, realizing a superior capacity of 419 mA h g−1 at 0.1 A g−1 after 150 cycles and retaining 220 mA h g−1 at 5 A g−1 even after 3000 cycles. As a consequence, the facile synthetic route and excellent sodium storage properties make N/S co-doped ordered mesoporous carbon show great prospect for the application of sodium-ion batteries anode material.