The hardening together of sediments to form sedimentary rock