Magma be stored in magma chambers or trans-crustal crystal-rich mush zones. During their storage in the crust, magma compositions may be modified by fractional crystallization, contamination with crustal melts, magma mixing, and degassing. Following their ascent through the crust, magmas may feed a volcano or solidify underground to form an intrusion (e.g., an igneous dike or a sill). While the study of magma has historically relied on observing magma in the form of lava flows, magma has been encountered in situ three times during geothermal drilling projects—twice in Iceland (see Magma usage for energy production), and once in Hawaii. Most magmatic
Volcanism plate tectonic activity, but some earthquakes are generated as a result of volcanic activity (though that itself is ultimately driven by the same forces). These are formed where water interacts with volcanism. These include geysers, fumaroles, hotsprings and mudpots, they are often used as a source of geothermal energy. The amount of gas and ash emitted by volcanic eruptions has a significant effect on the Earth's climate. Large eruptions correlate well with some significant climate change events. When magma cools it solidifies and forms rocks. The type of rock formed depends on the chemical composition of the magma and how