Igneous rocks are divided into two main categories: plutonic rock and volcanic rock. Plutonic or intrusive rocks result when magma cools and crystallises slowly within the earth's crust. A common example of this type is granite. Volcanic or extrusive rocks result from magma reaching the surface either as lava or fragmental ejecta forming minerals such as pumice or basalt.