Change in rock during burial, which destroys porosity by compaction and cementation and occasionally creates it.