Photoelectrochemical (PEC) devices using a direct integration architecture will require a protective coating to prevent corrosion of the solar cell by the electrolyte environment, which is often highly basic or acidic.