A batch of TiO
2 films with different Zn
2+ compositions are prepared on a single crystal silicon substrate by using sol-gel method to observe the changes in optical and photocatalytic properties in the alloying process of Zn
2+ and TiO
2. X-ray diffractometer (XRD) is used to observe the changes in the crystal structures of the films in the alloying process and to track the formation of ZnTiO
3 compounds. Scanning electron microscope (SEM) and atomic force microscope (AFM) are used to observe the phenomena of a large number of holes on the surfaces of the films due to the limited solubility of the crystal lattice for Zn
2+ in the alloying process. X-ray photoelectron spectroscopy (XPS) and optical bandgap are used to observe the changes at a level of the electronic structure of the films in the alloying process of Zn
2+ with TiO
2. Finally, by degrading the methylene blue solution, it is shown that a small amount of Zn
2+ doping is completely dissolved in TiO
2, destroying the TiO
2 crystalline quality. As the compositional share of Zn
2+ continues to increase to 15%, the limited solubility of TiO
2 for Zn
2+ is verified in the XPS peak fitting, resulting in a large number of hole structures in the film, and the active specific surface area of the film is enhanced, while Zn
2+ effectively traps the photogenerated e
–/h
+. In order to continue to observe the effect of Zn
2+ concentration on TiO
2, we increase the concentration of Zn
2+ to 40% and observe the phenomenon in the alloying process of Zn
2+ with TiO
2. It is shown that the appearance of the compound ZnTiO
3 can act as a complex center for e
–/h
+ and a significant decrease in the percentage of TiO
2 leads to a gradual decrease in the photocatalytic efficiency of the films after alloying.