Novel BiOCl/BiOBr heterojunction with rich oxygen vacancies (OVs) was successfully synthesized via ultrasound and photoinduced method. The XRD, SEM, TEM, XPS, DRS, ESR, SPV, PL, contact angle and electrochemical technique were implemented to characterize the as‐synthesized samples. The experiment results demonstrated that BOCBuv can degrade carbamazepine (2.5 mg/L) by nearly 60 % during 180 min under visible light irradiation, which is 2, 3, 7 times higher than that of BOCB, BOC and BOB, respectively. Furthermore, the presence of OVs and heterojunction structure not only enhance the light absorption but also improve the spatial separation and migration of photogenerated carriers, and thus BOCBuv exhibits polish photocatalytic performance. This research provides a new approach and insight for developing novel efficiency photocatalysts by tailoring surface defects and heterojunction structure.