Quartz is the second most abundant mineral in Earth's continental crust, after feldspar. Its crystal structure is a continuous framework of SiO4 silicon–oxygen tetrahedra, with each oxygen being shared between two tetrahedra, giving an overall chemical formula of SiO2.