Here's the chemical equation for the reaction:
2 Mg (s) + O₂ (g) → 2 MgO (s)
Magnesium oxide is a white powdery substance.