The document discusses the formation of different types of rocks through various geological processes. It describes how igneous rocks form from cooling magma either below (intrusive) or above (extrusive) the Earth's surface. Sedimentary rocks form through the weathering, erosion, deposition and lithification of sediments. Metamorphic rocks form when existing rocks are subjected to heat and pressure, such as in subduction zones or near magma intrusions. The key driving forces behind the continuous rock cycle are the Earth's internal heat and convection currents, along with processes at the surface influenced by the sun such as weathering.