Both ZnO and FTO are semiconductors with appropriately aligned energy levels, enabling superior performance of the photo-rechargeable supercapacitor.