Rocks are composed of different minerals and there are three main types: igneous, sedimentary, and metamorphic. Igneous rocks form from solidified magma or lava. Sedimentary rocks form through the compaction and cementation of sediments and may include sandstone, shale, and limestone. Metamorphic rocks were once igneous or sedimentary rocks that were changed by heat and pressure in the Earth's crust, such as limestone metamorphosing into marble or shale into slate.