We review the fabrication and properties of highly ordered TiO2 nanotube arrays made by anodic oxidation of titanium in fluoride-based electrolytes. The N-doped TiO2 nanotubes were prepared by changing the composition of electrolyte. TiO2 nanotubes and N-doped TiO2 nanotubes characterized by various analytical methods, such as scanning electron microscope (SEM) and X-ray photoelectron emission spectroscopy (XPS). The photocatalytic efficiency was evaluated by the photodegradation of Methyl orange solution under UV irradiation. It has been confirmed that the recombination rate of electron-hole pairs declined significantly. The higher visible light activity is due to the codoping of nitrogen.