Sandstone is a sedimentary rock. It is a rock made of compacted sand. Sand is small grains of rocks and minerals (such as quartz and feldspar). These are the most common minerals in the Earth's crust.