PEC cells typically consist of a photoanode, a cathode, and an electrolyte. When light strikes the photoanode, it generates electron-hole pairs. These charge carriers are then separated and driven to the respective electrodes, where they can participate in redox reactions. The efficiency of this process depends on the materials used and the cell's design.