There are three main types of rocks: igneous rocks, which form from cooled molten rock and can be volcanic or plutonic depending on the cooling rate; sedimentary rocks, which form from compressed and cemented sediments; and metamorphic rocks, which are formed from intense heat and pressure acting on pre-existing igneous and sedimentary rocks at depth in the Earth's crust.