Post-deposition annealing effects on nanomechanical properties of granular TiO 2 films on soda-lime glass substrates were studied. In particular, the effects of Na diffusion on the films' mechanical properties were examined. TiO 2 photocatalyst films, 330 nm thick, were prepared by dip-coating using a TiO 2 sol, and were annealed between 100°C and 500°C. Film's morphology, physical and nanomechanical properties were characterized by atomic force microscopy, X-ray photoelectron spectroscopy, X-ray diffraction, differential thermo-gravimetric analysis, and nanoindentation. Contrary to expectations, the maximum film hardness was achieved for 300°C annealing, with a value of 0.69 ( 0.05 GPa. Higher annealing temperatures resulted in inferior mechanical properties. No pile-up or sink-in effects were observed with minimal creep for the 300°C annealed sample. Considerable decrease in the amount of chemisorbed water was found with increasing annealing temperature, causing gel films densification, explaining the increasing trend of hardness with annealing temperature between 100°C and 300°C. DTA/TGA results also confirmed the weight loss and the endothermic reaction due to desorption of chemisorbed water. Decrease in hardness above 300°C annealing is attributed to thermal diffusion of Na ions from the glass substrate, confirmed by nanoindentation tests on TiO 2 films deposited on fused quartz, which did not exhibit hardness decrease after 300°C annealing.