Sedimentary rocks are formed from the accumulation and compression of sediments, such as mineral particles, organic matter, and fossils