There are three different types of rocks based on the way they form, igneous, sedimentary and metamorphic.