Igneous rocks come from melted rock material, or magma, that lies beneath Earth’s surface. Igneous rocks form when magma from inside the Earth moves toward the surface, or is forced above the Earth’s surface as lava and ash by a volcano. Here it cools and crystallizes into rock. There are two categories of igneous rocks. When magma crystallizes under Earth’s surface, it produces intrusive igneous rock with large crystals. When lava crystallizes above Earth’s surface, it produces extrusive igneous rock with crystals that are too small to see. Igneous rocks are very hard and made of interlocking crystals.
Examples of intrusive igneous rocks are diorite, gabbro, granite, pegmatite, and peridotite. Extrusive igneous rocks erupt onto the surface, where they cool quickly to form small crystals.