Sediment occurs naturally. It is the breaking down of material by weathering and erosion. Sedimentation is when fluid settles an rests against an barrier.
Most sandstone is composed of quartz and/or feldspar because these are the most common minerals in the Earth's crust, and it is formed from cemented grains that are either fragments of pre-existing rock or mono-minerallic crystals. Typically, the cements binding these grains together are calcite, clay, or silica.The formation of sandstone is broken apart into 2 stages:1. a layer (or layers) of sand accumulates as a result of sedimentation, either from water (as in a river, lake, sea etc) or from air (desert). The sedimintation occurs by the sand settling out from suspension (ceasing to be rolled or bounced along in the bottom of a body of water) or ground surface.2. once it has accumulated, the sand becomes sandstone when it is compacted by pressure of overlying deposits and cemented by the precipitation of minerals within the pore spaces between sand grains.
Accumulating deposits of sand from wind or water deposition are initially created. The weight from the deposits above cause compaction of the lower deposits. Compaction forces out air and water that exists between the sand grains. Minerals form from the remaining concentrated solutions in a process called precipitation. These minerals act as a cement which binds the particles of sand together, creating sandstone.