Despite its high capacity (∼2615 mAh·g−1), silicon oxide (SiOx) suffers from low electrical conductivity and volume expansion during cycling, leading to capacity fading. In this work, a SiOx/C composite was synthesized by magnesium thermal reduction using co-assembled mesoporous SiO2 and graphitic carbon nitride (g-C3N4) as precursors. The SiOx/C composite displays a sheet-like nanostructure with highly dispersed SiOx. The presence of carbon enhances the conductivity and structural stability of the composite, leading to a low charge resistance (94.0 Ω), fast lithium diffusion (DLi+ = 5.15 × 10−14 cm2·s−1), and excellent cycling capability (863 mAh·g−1 after 160 cycles).