The purification process of quartz sandstone was studied in this research. Optical microscopy, laser Raman spectroscopy, scanning electron microscopy (SEM), and inductively coupled plasma mass spectrometry (ICP-MS) were employed to analyze the quartz sandstone samples from Egypt. The results indicate that quartz is the dominant mineral in the sandstone, with complex associated minerals. Furthermore, numerous primary and secondary inclusions were observed within the quartz under the microscope. Chemical analysis of the raw material revealed a total impurity element content of 8407.80 \(\mu g \cdot g^{-1}\) . The major impurities include Al (6258.48 \(\mu g \cdot g^{-1}\) ), Ti (1262.03 \(\mu g \cdot g^{-1}\) ), Ca (321.22 \(\mu g \cdot g^{-1}\) ), Fe (287.46 \(\mu g \cdot g^{-1}\) ), and Na (221.26 \(\mu g \cdot g^{-1}\) ). A process flow combining steps such as ultrasonic desliming, magnetic separation, flotation, calcination, and water quenching with acid leaching under different conditions was developed. After secondary acid leaching at 160 \(^{\circ }\text {C}\) , the impurity content of the sample was reduced to 89.92 \(\mu g \cdot g^{-1}\) , with an impurity removal rate of 98.93%. The main impurities were reduced to Al (33.07 \(\mu g \cdot g^{-1}\) ), Ti (22.69 \(\mu g \cdot g^{-1}\) ), Ca (6.58 \(\mu g \cdot g^{-1}\) ), Fe (15.69 \(\mu g \cdot g^{-1}\) ), and Na (4.72 \(\mu g \cdot g^{-1}\) ). This study provides significant insights into the purification of high-iron, low-grade quartz sandstone. After purification, the purity of low-grade quartz sand reached 99.991% for the first time, and the flotation sand meets the photovoltaic glass raw material standards of GB/T 30984.1-2015 (Fe \(_2\) O \(_3\) \(\le \) 0.015%, TiO \(_2\) \(\le \) 0.02%). Additionally, the raw quartz sandstone is widely distributed with large reserves. It offers raw material support for the developing photovoltaic glass industry in North Africa (Xinyi Egypt project) and could drive the development of the local photovoltaic industry.