National Geographic – Formed from the compression of ocean sediments or other processes on or near the Earth’s surface, sedimentary rocks are one of three main types of rocks – along with igneous and metamorphic, which are formed deep within the Earth.
The most important geological processes that lead to the creation of sedimentary rocks are erosion and weathering, including the effects of wind and rain, which slowly break down large rocks into smaller ones.