Phosphogypsum (PG) is the main by-product of wet phosphoric acid production and has seriously polluted the environment. In this study, PG was purified by reverse flotation using a photosensitive azobenzene surfactant (PASF). After reverse flotation, the content of gypsum in PG increased from 89.16 % to 93.32 %, the whiteness of PG increased from 25.62 % to 60.9 %, and the content of quartz decreased from 4.87 % to 2.12 %. The Zeta potential of quartz and gypsum became positive after being treated with PASF, indicating that PASF enhanced the floatability of quartz and gypsum. The results of FTIR and XPS indicated that there were both electrostatic attraction and hydrogen bonding between PASF and quartz. Density functional theory (DFT) calculations indicated that the adsorption of PASF on the quartz surface was more stable than on the gypsum surface. Upon exposure to UV irradiation, the molecular structure of PASF was transformed from trans to cis. Meanwhile, the adsorption amount of PASF on the quartz surface was decreased and the rigidity of the corresponding adsorbed layer was increased. This work provides a method to purify PG waste, which is important for the comprehensive utilization of PG.