Magma melts rock inside the earth , witch when magmacools down it turns into a igneous rock.
Now after the rock cools down it breaks down into little peices after it breaks down from the water in the river .
Stage one : Weathering
So now whatever weather is happening the action of the water surface move the rock pieces from one location to another location on the earth surface .
Stage two : Erosion
After the rock travels to another location , then the rock drop from the water or wind and witch transport the rock to the bottom of the surface .
Stage 3 : Disposition
Then when the different pieces of rocks are lose sediment pieces then they that get compacted together and make different layer in the sedimentary rock.
Stage 4 : Compactin
After the pieces are compacted together the pressure of the water press all the kind of different rocks together that glues and cements them down and then become a sedimentary rock with different layers and crystallization .