Sedimentary rocks are one of the three main types of rocks, alongside igneous and metamorphic rocks. They form through the accumulation, compaction, and cementation of sediments over time. The processes of weathering, erosion, deposition, and lithification contribute to the formation of sedimentary rocks.