BackgroundPhotoelectrochemical (PEC) reduction of nitrate to produce ammonia (NIRR) is a green strategy for converting waste NO3− into high-value chemicals. However, a lack of active sites and low selectivity still plague the single catalyst used to establish the PEC-NIRR system. MethodsHere, we construct a BiVO4/VIn-ZnIn2S4 (BVO/VIn-ZIS) heterostructure with indium vacancies. The introduction of indium vacancy significantly enhances the conversion of NO3− to NH3 by augmenting active sites and fostering carrier separation via the creation of a built-in electric field. Significant findingsNH3 yield of BVO/VIn-ZIS heterostructure with moderate indium vacancy (BVO/VIn-ZIS-m) has been promoted to 15.26 μg h−1 cm−2 (BVO/VIn-ZIS-m), and NH3 selectivity reaches 21.3 times that of NO2−. The results of cyclic experiments further demonstrate that NH3 yield of BVO/VIn-ZIS-m has remained 98.4% after five cycles, due to its excellent durability. Therefore, this work demonstrates that indium vacancy could significantly modulate the PEC performance of BiVO4 to achieve an efficient NH3 production.