There are two categories of igneous rocks. Volcanic rocks are rocks formed when lava cools and solidifies on the earth's surface. ... Plutonic rocks are rocks formed when magma cools and solidifies below the earth's surface.