In geology, the physical and chemical changes by which a sediment becomes a sedimentary rock. The main processes involved include compaction of the grains, and the cementing of the grains together by the growth of new minerals deposited by percolating groundwater.