There is currently an ever-increasing demand for higher process efficiencies in next generation (Gen3) concentrating solar power (CSP). Higher process efficiencies may be procured by increasing the operating temperature, and simultaneously, minimizing the degradation of materials used for construction of CSP plants (e.g., piping, thermal storage tanks, solar receivers and heat exchangers). Thus, understanding materials corrosion in the presence of molten salt mixtures used as thermal energy storage media and heat transfer fluids is indispensable for CSP development. The present paper provides insights into the effects of salt purification on the corrosion of a nickel-based alloy (Haynes 230) isothermally exposed to a stagnant chloride-based salt mixture at 800 °C. The MgCl 2 -based salt mixture was thermally dehydrated and chemically treated with (0.1 and 0.5 wt %) elemental magnesium. Results reveal the electrochemical nature of the corrosion process, and the formation of corrosion products such as oxides (MgO, MgCr 2 O 4 , and MgAl 2 O 4 ) and nitrides (CrN) on the alloy surface and in sub-surface regions. Magnesium additions enhanced the ability to resist corrosion by reducing the concentration of impurities (H 2 O, MgOH + , OH − species) and polarizing the alloy surface. The formation of nitrides in all cases studied indicates the impact of using nitrogen as a protective gas in the system. Results also reveal that a single step treatment of the salt using metallic Mg could be considered as a measure to control the salt's impurity level, e.g., if required for system control. • Haynes 230 was exposed to several unpurified and purified MgCl 2 -based salt at 800 °C. • The corrosion behavior was systematically investigated using several analytical tools. • Abundant evidence for Cr- and Al-rich spinel and nitride formation was documented. • Possible formation mechanisms for the principal corrosion products were discussed. • Single-step purification of the salt substantially reduced the corrosion rate.