Herein, we demonstrate a simple strategy to boost the photocatalytic performance of BiOI by introducing oxygen defects into the BiOI. The oxygen-deficient BiOI exhibits superior photocatalytic performance for the degradation of formaldehyde gas. The enhancement of photocatalytic activity is due to the enhanced separation and migration efficiency of photogenerated electrons and holes.