Nonmetal (S, P) doped titania nanoparticles were synthesized by a one step hydrothermal method. These samples were calcined with different temperature, the sample exist in anatase phase has much higher photocatalytic activity for methylene blue (MB) degradation. The visible response and the higher UV activity of the different nonmetal doped TiO2 make it possible to utilize solar energy efﬁciently to execute photocatalysis processes. The resulting materials were characterized by X-ray diffraction (XRD), X-ray photoelectron spectroscopy (XPS), etc. It can conclude the nonmetal doping TiO2 proves to be more suitable to improve the photocatalytic performance.