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 are changed by heat and pressure in the earth's crust. The rock cycle shows how rocks continuously change between these three classes through geological processes.