Rock fragments that are cemented together and compacted over time turn into sedimentary rock.
the whole process can be summed up as the combination of weathering of rocks to form sediments, transport of the sediments to form deposits, cementation of deposits to forms the sedimentary rocks.