There are three basic types of rock: Igneous rocks form when magma solidifies, sedimentary rocks are made from compressed sediments, i. e. sand, and metamorphic rocks are created when either of the two is changed by heat or pressure.