Igneous rocks are formed when molten magma cools, either above or below the surface. They are divided into two main categories: plutonic rock and volcanic rock. Plutonic or intrusive rocks are made when magma cools and crystallizes slowly within the Earth's crust (example granite). Volcanic or extrusive rocks result from magma reaching the surface either as lava or ejecta (examples pumice and basalt).