The Ag/TiO2-xNx nanoparticles were synthesized by photochemical deposition with irradiation of visible light in a TiO2-XNX suspension system. The prepared products were characterized by means of XRD, Uv-vis, and FEM. Its photocatalytic activity was investigated by the decomposition of methylene blue (MB) solution under illumination of visible and ultraviolet light, respectively. Compared to TiO2-xNx, the photocatalytic activity of as–prepared Ag/TiO2-xNx is obviously enhanced due to the decreasing recombination of a photoexcited electron-hole pair. The mechanism in which photocatalytic activity is enhanced is discussed in detail.