Sandstone is a sedimentary rock composed mainly of sand-sized mineral particles, primarily quartz and feldspar, cemented together by mineral matter, such as silica, calcium carbonate, or iron oxide. It is characterized by its layered appearance and can vary in color, texture, and porosity.