Formation of igneous rock involves solidification of lava or magma with or on the Earth's surface.