There are three main types of rocks: igneous, sedimentary, and metamorphic. Igneous rocks form from cooling magma or lava. Sedimentary rocks form from compressed sediments over time. Metamorphic rocks were once igneous or sedimentary rocks that were changed by heat and pressure. Rocks have distinguishing features like crystals and grains that help classify their type.