What is sedimentary rock

Sedimentary rock is one of the three main types of rock found on Earth's surface, along with igneous and metamorphic rocks. It is formed through the accumulation and compaction of sediment, which can include fragments of minerals, rocks, shells, and other materials that have been eroded and transported by water, wind, or ice. Over time, these sediments become compacted and cemented together to form solid rock layers. Sedimentary rocks often contain fossils and provide valuable information about the Earth's history and past environments. Examples of sedimentary rocks include sandstone, shale, limestone, and conglomerate.