A RuO2-CdS-Ti-MCM-48 mesoporous material has been prepared. This composite material generates hydrogen and oxygen in the absence of a Pt co-catalyst and most importantly photocorrosion of CdS is completely eliminated.