Magma from a volcano erupts magma deep beneath the ground into the air.
Magma cooling is formed by solid crystals float within the remaining molten rock. This partially crystallized partially molten magma is then extruded,so that it cools very rapidly.
Igneous rock are rocks that forms when magma or lava cools and soldifies.They are formed by the cooling and crystallization of molten rock.
Weathering and erosion turns rocks into large rocks into smaller ones by its wind and rain.
fluids deposit ions to create a cement that hardens loose sediments which is cementation and sediments that are squeezed together by the weight of sediments and rocks on top of them is compaction.These things both create something called sedimentary rocks which are rocks deposited by water and wind.
Heat and pressure then form into something called metamorphic rocks