Indium sulfide with a two-dimensional layered structure offers a platform for catalyzing water oxidation by a photoelectrochemical process. However, the limited hole holders hinder the weak intrinsic catalytic activity. Here, the nonmetallic phosphorus atom is coordinated to In 2.77 S 4 /In(OH) 3 through a bridge-bonded sulfur atom. By substituting the S position by the P dopant, the work function (surface potential) is regulated from 445 to 210 mV, and the lower surface potential is shown to be beneficial for holding the photogenerated holes. In 2.77 S 4 /In(OH) 3 /P introduces a built-in electric field under the difference of Fermi energy, and the direction is from the bulk to the surface. This band structure results in upward band bending at the interface of In 2.77 S 4 /In(OH) 3 and P-doped sites, which is identified by density functional theory calculations (∼0.8 eV work function difference). In 2.77 S 4 /In(OH) 3 /P stands out with the highest oxidation efficiency (η oxi = 70%) and charge separation efficiency (η sep = 69%). Importantly, it delivers a remarkable water oxidation photocurrent density of 2.51 mA cm −2 under one sun of illumination.