MXene doped with sulfur creates a 3D porous structure with increased layer spacing which demonstrated exceptional rate performance and good cycling stability as sodium ion battery anodes, with a long-term cycling performance of 256.1 mAh g −1 even after 2480 cycles at 5 A g −1 .