An anode current produced by the photoelectrochemical reaction of a semiconductor must be higher than a cathode limiting current density, i.e., the density of a cathode current produced by the oxidizing components, such as oxygen and hydrogen peroxide, of the reactor water to reduce the corrosion potential.