How Sedimentary Rocks are Formed. Sandstone. An area of sand is deposited. The sand is made of loose particles. The particles are compacted over time. A matrix is introduced to the sand. . Over time, the particles are cemented together. . A layer of sandstone is formed. . Shale.
Over time, the weight of the sea water compacts the calcite, clay, and sand.