A robust photocatalyst of Au25@ZIF-8@TiO2-ReP with dual photoreductive sites to promote photoelectron utilization in H2O splitting to H2 and CO2 reduction to CO.