Igneous rocks form when magma, or melted rock from inside the Earth, cools and hardens. They can form above ground when magma erupts from a volcano as lava. Igneous rocks may be divided into two categories. Intrusive or plutonic rocks crystallize from magma beneath the earth's surface. Extrusive or volcanic rocks crystallize from lava at the earth's surface.