Anatase TiO2 thin films are deposited on K9 glass samples at different substrate temperatures by radio frequency magnetron sputtering. N ion implantation is performed in the as-deposited TiO2 thin films at ion fluences of 5 × 1016, 1 × 1017, and 5 × 1017 ions/cm2. X-ray diffraction, atomic force microscope, X-ray photoelectron spectroscopy (XPS), and UV–visible spectrophotometer are used to characterize the films. With increasing N ion fluences, the absorption edges of anatase TiO2 films shift to longer wavelengths and the absorbance increases in the visible light region. XPS results show that the red shift of TiO2 films is due to the formation of N–Ti–O compounds. As a result, photoactivity is enhanced with increasing N ion fluence.