This document discusses the three main types of rocks: igneous, sedimentary, and metamorphic. Igneous rocks form from the cooling of magma either below or above the surface. Sedimentary rocks form through the compaction and cementation of sediments. Metamorphic rocks form from existing rocks undergoing changes due to heat, pressure, and chemicals, usually deep within the Earth. The rock cycle illustrates how the three rock types are interrelated as they form and change over time through geological processes.