Here's a breakdown:
* Igneous rocks are formed from the cooling and solidification of magma (molten rock) or lava.
* Sedimentary rocks are formed from the accumulation and cementation of sediments, which are fragments of other rocks, mineral grains, or organic matter.
* Metamorphic rocks are formed when existing rocks are transformed by heat, pressure, or chemical reactions.
The rock cycle demonstrates how these three rock types are interconnected and can be transformed into each other over time.