Rocks can be divided into three main groups: igneous, sedimentary, and metamorphic. Sedimentary rocks form from the deposition of minerals and organic materials. Igneous rocks form from the cooling of magma. Metamorphic rocks make up a large part of the Earth's crust and are classified by their texture and mineral composition. Common rocks include marble, granite, quartz, and limestone.