Earth materials

Which pair of processes most directly converts loose sediment into sedimentary rock?