Highly crystalline and ordered mesoporous TiO2 thin films have been synthesized by stabilization of the mesostructure with confined carbon; the films exhibit 2.5% photoconversion efficiency for the water photolysis at zero-bias and Xe lamp illumination of 40 mW cm(-2).