Magnesite is a magnesium carbonate mineral with a chemical composition of MgCO3. It is named after the presence of magnesium in its composition. Magnesite usually forms during the alteration of magnesium-rich rocks or carbonate rocks by metamorsm or chemical weathering.