Sedimentary rocks are formed from the accumulation of sediments in layers or beds over time. These layers often contain minerals that have settled out of water or air, leading to the occurrence of minerals in beds or layers. Examples include coal beds, iron ore bands, and limestone layers.