N-doped TiO2 were prepared by hydrothermal synthesis at different temperature. Then to test the photocatalysis by degradation of organophosphorus pesticide. We can come to the conclusion that high hydration temperature had a negative impact on the photocatalysis. The resulting materials were characterized by X-ray diffraction (XRD), X-ray photoelectron spectroscopy (XPS), etc. This study has developed a promising and practical pathway to nitrogen-doped photocatalysts.