Here's why:
* Combustion: Burning is a chemical reaction called combustion. Combustion requires a fuel (magnesium in this case), an oxidizer (oxygen), and heat to initiate the reaction.
* Magnesium Oxide: When magnesium burns, it reacts with oxygen to form magnesium oxide (MgO). This reaction releases a lot of heat and light, which is why you see a bright, white flame.
The chemical equation for the reaction is:
2 Mg (s) + O2 (g) → 2 MgO (s)
While other gases are present in air like nitrogen, carbon dioxide, and argon, they don't readily react with magnesium at the temperatures involved in burning.