Sodium-ion batteries (SIBs) are on the verge of achieving practical applications, and the key is to find suitable electrode materials. The polyanionic iron-based material Na 3.12 Fe 2.44 (P 2 O 7 ) 2 (NFPO) possesses an open three-dimensional framework structure with good thermal stability and is regarded as an outstanding cathode material for SIBs. Nevertheless, its poor electrical conductivity, problems with erosion of electrolytes, and structural deterioration during cycling still need to be urgently addressed. Here, we first design a Mg 2+ -doped NFPO (NFPO-Mg) material with a dual-action effect. On the one hand, Mg 2+ improves the intrinsic conductivity of the NFPO material, and on the other hand, Mg 2+ promotes the formation of a homogeneous and stable cathode− electrolyte interphase film during the cycling process, which results in a superior rate performance and cycling stability. A capacity of 68.6 mAh g −1 was achieved at 50C (1C = 117.4 mAh g −1 ), and a capacity retention of 79.1% was maintained after 3000 cycles at 20C. More impressively, NFPO-Mg exhibits outstanding high-temperature electrochemical performance, with a capacity retention of 95.3% after 400 cycles at 10C at 60 °C (much higher than the 54.2% for the NFPO). This paper explores an effective method for improving the electrochemical performance of cathode materials, which may prove instrumental in guiding the design of more high-performance cathode materials in the future. KEYWORDS: sodium-ion battery, cathode material, Na 3.12 Fe 2.44 (P 2 O 7 ) 2 , Mg 2+ doping, cathode−electrolyte interphase