Magnesium is a chemical element with the symbol Mg and atomic number 12, known for its essential role in various geological and biological processes. In the context of Earth's composition, magnesium is a crucial component of many minerals, such as olivine and pyroxene, and plays a significant role in the formation of the Earth's mantle and crust. Its presence influences the physical and chemical properties of these layers, impacting processes like plate tectonics and volcanic activity.