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