The generation of singlet oxygen (1O2) based on photocatalytic activation O2 is considered to have important application prospects in purifying refractory organic pollutants in water. However, the uncertain dual pathway transformation of activated O2 severely limits the generation of 1O2. In this work, we show a robust BiOCl with dual defects (adjacent I-substitution defect and Cl vacancy) in halogen layer for the selective activation of O2 to generate 1O2. Combining experiments and theoretical calculations, we confirm that dual defects are beneficial in optimizing band structures, improving carrier separation efficiency, and promoting O2 adsorption and activation. More importantly, it is confirmed that dual defects can directionally convert O2 into 1O2 by increasing the thermodynamic conversion energy barrier of non-1O2 conversion pathways and serving as a necessary site for 1O2 generation with dual functions of oxidation and reduction. Applying dual defect modified BiOCl to the removal of refractory aromatic pollutants in water, it is found that it has efficient and stable photocatalytic degradation efficiency and broad environmental adaptability. This work not only provides in-depth insights into the mechanism of photocatalytic activation of O2 to selective produce 1O2, but also lays the foundation for further development of highly active photocatalysts for environmental remediation and energy conversion.