The document discusses the processes involved in rock formation. It describes how igneous rocks form from the crystallization of magma, either below the Earth's surface (intrusive) or on the surface (extrusive). Sedimentary rocks form from the compaction and cementation of sediments, and metamorphic rocks form from changes to existing rocks via heat, pressure and fluid processes in the Earth. The rock cycle illustrates how different rock types are interrelated as they form and are transformed over time through geological processes associated with plate tectonics.