With the development of the science and technology, environmental pollution becomes one of the most serious problems all over the world. TiO2 has gained intense research in the past decades due to its applications in environmental puriﬁcation and solar energy conversion. In this paper, we discuss the influence of nonmetal (N, P, S) doped TiO2 were prepared by hydrothermal method, the samples are characterized by scanning electron microscopy (SEM), X-ray diffraction (XRD) and X-ray photoelectron spectroscopy (XPS). The photocatalytic activity of them was evaluated for the degradation of methylene blue under xenon lamp which has similar spectra to solar light. The results domenstrated that the N, P-codoped TiO2 powders exhibited a better photocatalytic activity, and the optimum molar ratio is also investigated.