Igneous rocks are formed from solidified magma or lava. Magma is thought to be generated within the layer of partially molten rock underlying Earth’s crust at a depth below about 60 kilometres (40 miles). Lava is liquid magma on the Earth’s surface, and the solidified rock formed by cooled lava.