The effectiveness of solar-driven water splitting is constrained by inefficient separation of photogenerated charge carriers and their rapid recombination. Researchers now show that multilayered structures that exhibit quantum effects by confining electrons in thin layers can optimize charge carrier dynamics, resulting in photocatalysts with remarkable efficiency.