Diagenesis is the process that turns sediments into sedimentary rocks. The lithification (literally turning into stone) of the sediments is usually accomplished by a cementing agent. How the weight of the overlying material increases the grains closer together, reducing pore space and eliminating some of the contained water. This water may carry mineral components in solution, and these constituents precipitate as new minerals in the pore spaces. This causes cementation, which will then start to bind the individual particles together. Further compaction and burial may cause recrystallization of the minerals to make the rock even harder.
Generalic, Eni. "Diagenesis." Croatian-English Chemistry Dictionary & Glossary. 29 June 2022. KTF-Split. {Date of access}. <https://glossary.periodni.com>.
Glossary
Periodic Table