Sedimentary rocks are Porous and form an accumulation of all the sediments that we see, namely sand, mud, pebbles, and so on. This happens in layers that are pressed and cemented together. During this time, fossils form in the process. This type of formation has small gaps all over the surface of the rocks; therefore, the resulting sedimentary rocks have the capacity to hold water or petroleum products.