Sedimentary rocks are formed by the erosion and deposition of sediments. Sediments are bits of rock, mineral, or organic matter that are carried by wind, water, or ice and deposited in a new location. Over time, these sediments can become compacted and cemented together to form sedimentary rocks.