The process involves a photoelectrochemical cell (PEC), which consists of a photoelectrode, an electrolyte, and a counter electrode. When light strikes the photoelectrode, it generates electron-hole pairs. These electrons and holes then participate in redox reactions at the electrode surfaces, leading to the splitting of water molecules.