Three families of rock
Igneous rocks are born from cooling magma or lava: granite slowly underground, basalt quickly at the surface. Sedimentary rocks form from compressed layers of sediment — sandstone from sand, shale from mud, limestone from the shells of sea creatures. Metamorphic rocks are existing rocks transformed by heat and pressure deep underground, like marble remade from limestone.
These are not one-way destinies. Any rock, given the right conditions, can become any other kind. A granite mountain can weather into sand, the sand can cement into sandstone, and the sandstone, buried and squeezed, can recrystallise into quartzite.
Powered from inside and out
Two engines drive the cycle. Earth's internal heat melts rock, lifts mountains and opens the crust where new rock forms. The Sun powers the surface engine: weather, rivers, ice and waves that break rock down and carry the pieces away.
The timescale is humbling. The pebble in your pocket may contain grains that were once a beach, a seabed, and part of a mountain range — possibly more than once. Geology's deepest lesson is that even stone is temporary.

