Magnesite occurs as veins in and an alteration product of ultramafic rocks, serpentinite and other magnesium rich rock types in both contact and regional metamorphic terranes. These magnesites often are cryptocrystalline and contain silica as opal or chert. Magnesite is 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.