Rocks are classified as igneous, sedimentary, or metamorphic. Igneous rocks form from volcanic activity as either extrusive or intrusive rocks. Sedimentary rocks form through erosion, deposition, compaction and cementation of sediments. Metamorphic rocks form from existing rocks that have changed due to heat, pressure, and chemical reactions deep within the earth. The rock cycle shows how rocks continuously change between these three classes through geological processes.