The rock cycle helps us understand the origin of rocks by linking the processes and the different geologic materials. Processes include the movement of plates, weathering, erosion, deposition, and volcanic eruption.
Magma - is found beneath the surface. It is a hot molten rock. This magma will slowly cool and solidify. This is known as crystallization and will form an intrusive igneous rock.
Some magma though, is thrust upwards due to the difference in density. Crystallization will then occur and an extrusive igneous rock will form.
The plates' movement, such as uplifting, exposes these igneous rocks to the Earth's surface and will become an outcrop. outcrops will then be weathered, and taken from one location to another through erosion. They will then combine with other particles and become sediments.
The build-up of deposited sediments causes burial for hundred of meters. it will then undergo lithification.
Compaction - compressing together layers of sediments due to great weight of overlying layers.
Cementation is the binding of sediments.
Fluids such as groundwater contain ions that fill in the pore spaces between the loose particles of the sediments.