Quartz-rich sandstones are sedimentary rocks primarily composed of quartz grains, typically formed from the lithification of sand-sized particles. These rocks are significant indicators of their depositional environments, revealing clues about past geological processes and settings where they were formed, such as riverbeds, beaches, and deserts.