Surface treatment can effectively modulate the surface properties of a photocatalyst to hasten the separation and transfer of photoinduced charges, ultimately achieving high photocatalytic performance. Herein, surface treatment of anatase-phase TiO2 prepared by a hydrothermal method was performed under H2/N2 mixed atmosphere. The experimental results demonstrate that roasting TiO2 in a H2/N2 atmosphere can effectively reduce partial Ti4+ to Ti3+, thereby facilitating the production of tunable oxygen vacancies (OVs) by disrupting Ti-O-Ti bonds. OVs can construct defective energy levels to bring about a decrease in the bandgap of TiO2 and an extension of light absorption range. Moreover, OVs remarkedly improve the separation of photoinduced charges of TiO2 and accelerate the photocatalytic reaction as active sites. The photocatalytic experimental results demonstrate that TiO2 exhibits the highest performance when roasting TiO2 in a H2/N2 atmosphere for 2 h, and the photocatalytic degradation rate constant of rhodamine B (RhB) and tetracycline (TC) on this sample under simulated solar light irradiation is 2.24 and 1.11 times higher than that on the reference TiO2, respectively. These findings provide valuable insights for designing highly efficient photocatalysts for effective water pollution treatment.