Magnesium is a ductile, silver-white, chemically active metal with a hexagonal close-packed crystalline structure. It is malleable when heated. Magnesium is one of the alkaline-earth metals in Group 2 of the periodic table. It reacts very slowly with cold water. It is not affected by dry air but tarnishes in moist air, forming a thin protective coating of basic magnesium carbonate, MgCO3·Mg(OH)2. When heated, magnesium powder or ribbon ignites and burns with an intense white light and releases large amounts of heat, forming the oxide, magnesia, MgO. A magnesium fire cannot be extinguished by water, since water reacts with hot magnesium and releases hydrogen. Magnesium reacts with the halogens and with almost all acids. It is a powerful reducing agent and is used to free other metals from their anhydrous halides.