Intrusive rock formed from magma that cools and solidifies within the crust of the planet. In contrast, an "extrusion" consists of extrusive rock; rock formed above the surface of the crust. Large bodies of magma that solidify underground before they reach the surface of the crust are called plutons. Plutonic rocks form 7% of the Earth's current land surface. Coarse-grained intrusive igneous rocks that form at depth within the earth are called "abyssal" while those that form near the surface are called subvolcanic or "hypabyssal". Intrusive structures are often classified according to whether or not they are parallel to the bedding planes
Volcanism rapidly it cools. Magma that reaches the surface to become lava cools rapidly, resulting in rocks with small crystals such as basalt. Some of this magma may cool extremely rapidly and will form volcanic glass (rocks without crystals) such as obsidian. Magma trapped below ground in thin intrusions cools more slowly than exposed magma and produces rocks with medium-sized crystals. Magma that remains trapped in large quantities below ground cools most slowly resulting in rocks with larger crystals, such as granite and gabbro. Existing rocks that come into contact with magma may be melted and assimilated into the magma. Other