The solar-driven photo(electro)catalytic chemical process is a key technology for sustainable utilization of solar energy. It has beena widely applied to environmental remediation and solar fuel production. The dual functional photo(electro)catalytic process can achieve the water treatment along with the simultaneous recovery of energy (e.g., H2 and H2O2) or resource (e.g., metal ions).