The sedimentary rock formed from sand deposits is referred to as "sandstone." This type of rock accounts for about one-quarter of all sedimentary rock on the planet, second only to mudstone.
The grains in sandstone vary in size from coarse particles, which are up to 1 millimeter in diameter, to fine sand with widths of 0.0625 millimeters. The primary material in sandstone is quartz, followed by feldspar. The formation of sandstone begins as water or wind carries away bits of eroding rocks. When the wind or water loses energy and is unable to carry them any farther, the particles are dumped in a process called "sedimentation."