Igneous rocks are divided by where and how quickly the magma cools:
Plutonic Igneous Rocks
Cool slowly beneath the Earth’s surface, forming coarse-grained rocks with visible crystals. Examples include granite, diorite, and gabbro.
Volcanic Igneous Rocks
Cool quickly at the surface, forming fine-grained rocks with microscopic crystals. Examples include basalt, andesite, and rhyolite.