Magnesite is magnesium carbonate, MgCO3. Iron (as Fe2+) substitutes for magnesium (Mg) with a complete solution series with siderite, FeCO3. Calcium, manganese, cobalt, and nickel may also occur in small amounts. Dolomite, (Mg,Ca)CO3, is almost indistinguishable from magnesite.
Magnesite is also present within the regolith above ultramafic rocks as a secondary carbonate within soil and subsoil, where it is deposited as a consequence of dissolution of magnesium-bearing minerals by carbon dioxide within groundwaters.
Magnesite can also be formed via the carbonation of magnesian serpentine (lizardite) via the following reaction:
Serpentine + carbon dioxide → Talc + magnesite + Water
Forsterite magnesia-rich olivine compositions favor production of magnesite from peridotite. Fayalitic (iron-rich) olivine favors production of magnetite-magnesite-silica compositions.
Magnesite can also be formed from metasomatism in skarn deposits, in dolomitic limestones, associated with wollastonite, periclase, and talc.
Similar to the production of lime, magnesite can be burned in the presence of charcoal to produce MgO, otherwise known as periclase. Such periclase is an important product in refractory materials.