hi i am rocky i started as magma in a volcano. i will show you the ways rocks are made. there are three types of rocks. that are called Igneous, Sedimentary, and Metamorphic
Igneous rocks form when magma cools and crystallizes, either at volcanoes on the surface of the Earth or while the melted rock is still inside the crust.
On the surface, weathering and erosion break down the igneous rock into pebbles, sand, and mud, creating sediment, which accumulates in basins on the Earth's surface. As successive layers of sediment settle on top of one another, the sediment near the bottom is compressed, hardens, and forms sedimentary rock.