Magma () is the molten or semi-molten natural material from which all igneous rocks are formed. Magma is found beneath the surface of the Earth, and evidence of magmatism has also been discovered on other terrestrial planets and some natural satellites. Besides molten rock, magma may also contain suspended crystals and gas bubbles. Magma is produced by melting of the mantle or the crust in various tectonic settings, which on Earth include subduction zones, continental rift zones, mid-ocean ridges and hotspots. Mantle and crustal melts migrate upwards through the crust where they are thought to be stored in magma chambers or trans-crustal crystal-rich mush zones. During magma's storage in the crust, its composition may be modified by fractional crystallization, contamination with crustal melts, magma mixing, and degassing. Following its ascent through the crust, magma may feed a volcano and be extruded as lava, or it may solidify underground to form an intrusion, such as a dike, a sill, a laccolith, a pluton, or a batholith. While the study of magma has relied on observing magma after its transition into a lava flow, magma has been encountered in situ three times during geothermal drilling projects, twice in Iceland (see Use in energy production) and once in Hawaii. Physical and chemical properties Magma consists of liquid rock that usually contains suspended solid crystals. As magma approaches the surface and the overburden pressure drops, dissolved gases bubble out of the liquid, so that magma near the surface consists of materials in solid, liquid, and gas phases. Composition Most magma is rich in silica. Rare nonsilicate magma can form by local melting of nonsilicate mineral deposits or by separation of a magma into separate immiscible silicate and nonsilicate liquid phases. Silicate magmas are molten mixtures dominated by oxygen and silicon, the most abundant chemical elements in the Earth's crust, with smaller quantities of aluminium, calcium, magnesium, iron, sodium, and potassium, and minor amounts of many other elements. Petrologists routinely express the composition of a silicate magma in terms of the weight or molar mass fraction of the oxides of the major elements (other than oxygen) present in the magma. Because many of the properties of a magma (such as its viscosity and temperature) are observed to correlate with silica content, silicate magmas are divided into four chemical types based on silica content: felsic, intermediate, mafic, and ultramafic. Felsic magma Felsic or silicic magmas have