Sandstone is a type of rock which contains a lot of sand. It is a common bedded sedimentary rock much used for building, composed largely of sand grains, mainly quartz, held together by silica and lime. On the sub surface, sandstone often serves as an aquifer for groundwater or a reservoir for oil and natural gas.