Magma is molten rock material situated beneath the Earth's surface, formed when pre-existing solid rock undergoes melting due to variations in temperature, pressure, or the introduction of volatile substances. Its composition can vary widely, encompassing rock-forming silicates, and its density and viscosity govern its movement through subterranean chambers and conduits. The cooling and solidification of magma are fundamental processes in planetary geology, resulting in the formation of igneous rock. The movement of large volumes of magma is responsible for the rifting of continental crust, the creation of deep-sea features, and the establishment of volcanic landmasses.