Diagenesis is the process by which changes occur in sediment after it is deposited until the onset of metamorphism. During diagenesis, loose sediments are transformed into a solid rock through compaction, recrystallization, dissolution, replacement, cementation, and other processes. These diagenetic processes are important as they can significantly modify the composition and properties of the original sediment and even destroy sedimentary structures in rare cases.