Through time, the shoreline changes, and the original beach may be buried by other material. The beach sand becomes compacted. Water percolating through the rock carries minerals with it that may be deposited between the grains of sand, and act as 'glue' to hold the rock together. Sedimentary rocks are formed in layers, known as beds . They are typically deposited in flat layers, with one bed being deposited on top of another as time progresses.
Sedimentary rocks have the appearance of a 'layer cake', at least at the time of deposition.
Later, the beds may become folded or faulted due to tectonic movements. Weathering is the process of 'wearing' down a rock, for example by repeated exposure to rain, floods, plant roots breaking apart fractures, ets. Wasting refers to the the gradual wearing away of a landform or surface by natural processes, such as weathering and erosion. An Evaporite is a sedimentary rock that has formed of material that was deposited from a solution caused by the evaporation of water. For example, halite is formed when sea water evaporates and leaves behind the salt.