Quartz is the second most abundant mineral in Earth's crust after feldspar. It occurs in nearly all acid igneous, metamorphic, and sedimentary rocks. It is an essential mineral in such silica-rich felsic rocks as granites, granodiorites, and rhyolites