Dye-sensitized mesoporous nickel oxide offers a platform for studying p-type solar cells and photoelectrochemical fuel production. Key findings on charge separation, recombination and surface states help explain both the promise and the constraints of these devices.