There are three main types of rocks: igneous, sedimentary, and metamorphic. Igneous rocks form from cooling magma or lava and can be intrusive or extrusive. Sedimentary rocks form through the accumulation of sediments such as weathered debris, minerals from solution, or organic matter. Metamorphic rocks form from the transformation of existing rocks through metamorphism, which means "change in form" under high temperatures and pressures.