* Sedimentary rock: Formed from the accumulation and cementation of sediments (like sand, mud, or shells).
* Melting: When sedimentary rock is subjected to intense heat and pressure (like deep within the Earth), it melts into magma.
* Cooling and Solidification: As the magma cools, it crystallizes and solidifies, forming igneous rock.
Types of Igneous Rocks:
* Intrusive Igneous Rocks: Form when magma cools slowly underground. They often have larger crystals (examples: granite, diorite).
* Extrusive Igneous Rocks: Form when magma erupts onto the Earth's surface as lava and cools quickly. They tend to have smaller crystals (examples: basalt, rhyolite).