Alkaline earth metals are reactive, though less so than the alkali metals, and they burn with bright flames.
Reactions in the lab
Magnesium takes part in 12 reactions in My Chemistry Lab.
With nitrogen (N2) · needs heat 3 Mg + N2 → Mg3N2 Burning magnesium is so hot that it even reacts with nitrogen, which normally ignores everything. Makes magnesium nitride. In a real lab: Fire.
With oxygen (O2) · needs heat 2 Mg + O2 → 2 MgO Magnesium burns with a blinding white light. Fireworks and old camera flashes use it. Makes magnesium oxide. In a real lab: Too bright to look at.
With fluorine (F2) Mg + F2 → MgF2 Magnesium burns in fluorine and leaves a solid salt. Makes magnesium fluoride. In a real lab: Fluorine is extremely dangerous.
With sulfur (S) · needs heat Mg + S → MgS Heated together, magnesium and sulfur join into one new solid. Makes magnesium sulfide.
With chlorine (Cl2) · needs heat Mg + Cl2 → MgCl2 Warm magnesium reacts with chlorine and makes a salt. Makes magnesium chloride. In a real lab: Chlorine is poisonous.
With bromine (Br2) · needs heat Mg + Br2 → MgBr2 Warm magnesium reacts with bromine and makes a salt. Makes magnesium bromide. In a real lab: Bromine is poisonous.
With iodine (I2) · needs heat Mg + I2 → MgI2 Warm magnesium reacts with iodine and makes a salt. Makes magnesium iodide. In a real lab: Iodine is poisonous.
With water (H2O) Mg + 2 H2O → Mg(OH)2 + H2 Very slow in cold water. In hot water or steam it goes much faster. Makes magnesium hydroxide, hydrogen gas.
With hydrochloric acid (HCl) Mg + 2 HCl → MgCl2 + H2 Fast fizzing, and the tube gets warm. Makes magnesium chloride, hydrogen gas. In a real lab: Acid burns skin. Hydrogen is flammable.
With sulfuric acid (H2SO4) Mg + H2SO4 → MgSO4 + H2 Magnesium pushes hydrogen out of the acid. It fizzes with hydrogen bubbles and leaves a salt. Makes magnesium sulfate, hydrogen gas. In a real lab: Acid burns skin. Hydrogen is flammable.
With carbon dioxide (CO2) · needs heat 2 Mg + CO2 → 2 MgO + C Burning magnesium keeps burning inside carbon dioxide. It steals the oxygen and leaves black carbon behind. That is why a CO2 fire extinguisher cannot put out a magnesium fire. Makes magnesium oxide, carbon. In a real lab: Too bright to look at.
With copper sulfate (CuSO4) CuSO4 + Mg → MgSO4 + Cu Magnesium kicks copper out fast. Copper appears and the blue fades. Makes magnesium sulfate, copper metal.