Abstract. Nitrogen doped mesoporous TiO2 was prepared via a modified two-step hydrothermal route. In contrast to undoped mesoporous TiO2, nitrogen doped mesoporous TiO2 has superior photocatalytic activity under both UV and visible light irradiation. Photoluminescence spectra reveal that nitrogen doped mesoporous TiO2 possesses abundant surface states, which can play a vital role in trappin…