Rocks are naturally occurring solid mixtures of minerals or organic matter. They are classified based on how they form, their composition, and texture. Rocks change over time through the rock cycle. There are three main types of rocks: igneous, sedimentary, and metamorphic. Igneous rocks form from cooling magma, sedimentary rocks form through the compaction and cementation of sediments, and metamorphic rocks form from changes to existing rocks through heat, pressure, and deformation.