Manganese sulfide (MnS) is a suitable electrode material for use in sodium-ion batteries (SIBs) due to its high theoretical capacity and low cost. However, its practical application is still hampered by disadvantages such as large volume expansion during charging/discharging and limited cycle life. Therefore, reasonable structural design is of great importance in order to achieve an excellent sodium storage performance of the electrode materials for SIBs. Herein, nano-MnS@N,P dual-doped lignite based porous carbon (MnS@N,P-LPC) composite with a single MnS cube encapsulated in an N,P dual-doped lignite derived porous C is successfully prepared as superior anode material for SIBs. The multilayer pore structure and the combined effect of N and P dual-doping can enhance electrochemical performance by supplying more sodium storage sites. After 200 cycles at 0.1 A g−1, the composite complex produced a maximum capacity of 519 mA h g−1 and demonstrated a capacity of 392.5 mA h g−1 even at 1.6 A g−1. It exhibits outstanding cycling stability and superior rate performance. This excellent electrochemical performance is ascribed to the presence of the multilayer pore N,P dual-doped C skeleton, which effectively addresses the volume expansion of MnS particles during charging/discharging and facilitates efficient transport of ions and electrons through an effective conductive network.