The rock is pushed into the river, then other rocks bang into it and make bits break off then after a long time layers build up and are forced together.The.