Combining the hydrothermal method with the solgel method, TiO2 nano film photoelectrodes with different film thickness were prepared with nickel foam as the substrate. The surface morphology and photoelectrical properties of the samples were measured by SEM and electrochemical workstation. The results indicate that the samples with 10 TiO2 layers show the highest photoelectric response and also the best material adhesion.