Carbonaceous materials have attracted immense interest as anode materials for Na-ion batteries (NIBs) because of their good chemical, thermal stabilities, as well as high Na-storage capacity. However, the carbonaceous materials as anodes for NIBs still suffer from the lower rate capability and poor cycle life. An N,O-dual doped carbon (denoted as NOC) network is designed and synthesized, which is greatly favorable for sodium storage. It exhibits high specific capacity and ultralong cycling stability, delivering a capacity of 545 mAh g(-1) at 100 mA g(-1) after 100 cycles and retaining a capacity of 240 mAh g(-1) at 2 A g(-1) after 2000 cycles. The NOC composite with 3D well-defined porosity and N,O-dual doped induces active sites, contributing to the enhanced sodium storage. In addition, the NOC is synthesized through a facile solution process, which can be easily extended to the preparation of many other N,O-dual doped carbonaceous materials for wide applications in catalysis, energy storage, and solar cells.