There are three main types of rocks: sedimentary, igneous, and metamorphic. Sedimentary rocks form from the accumulation of sediments or organic matter. Igneous rocks form from the cooling of molten rock material either below or above the Earth's surface. Metamorphic rocks were once sedimentary or igneous rocks that were altered by heat, pressure, and chemical processes underground.