Quartz is a tectosilicate mineral that is the second most common mineral in Earth's continental crust. Its crystal structure is a framework of SiO silicon–oxygen tetrahedra. Each shares an oxygen atom with another tetrahedron, so the overall chemical formula is SiO or silica.