Geology majority of the geologic history of the Earth. There are three major types of rock: igneous, sedimentary, and metamorphic. The rock cycle illustrates the relationships among them (see diagram). When a rock crystallizes from melt (magma or lava), it is an igneous rock. This rock can be weathered and eroded, then redeposited and lithified into a sedimentary rock. It can then be turned into a metamorphic rock by heat and pressure that change its mineral content, resulting in a characteristic fabric. All three types may melt again, and when this happens, new magma is formed, from which an igneous rock
Magma chamber 1 km and 10 km down. Magma rises through cracks from beneath and across the crust because it is less dense than the surrounding rock. When the magma cannot find a path upwards it pools into a magma chamber. These chambers are commonly built up over time, by successive horizontal or vertical magma injections. Influx of new magma causes reaction of pre-existing crystals and the pressure in the chamber to increase. The residing magma starts to cool, with the higher melting point components such as olivine crystallizing out of the solution, particularly near to the cooler walls of the chamber,