Rocks are composed of minerals and come in three main types: igneous, sedimentary, and metamorphic. Igneous rocks form from solidified magma or lava. Sedimentary rocks form from compressed sediment. Metamorphic rocks form from changes to existing rocks by heat, pressure, and chemical reactions. These three rock types are continuously transforming into one another through geological processes in the rock cycle.