Three-dimensionally ordered mesoporous niobium oxide was prepared by a neutral templating route with the addition of a trace amount of cations, which have 5- and 2-nm pore diameter and wall thickness, respectively.