What role does sulfur hexafluoride play in magnesium production?

It acts as a protective gas, preventing oxidation during the casting process and maintaining the quality of magnesium products.