• Nitrogen-doping method diversifies the vacancy access in TiO 2 nanorod array based memristors. • Device Al/N-TiO 2 NARs/FTO exhibits good cyclability over 8000 I-V cycles and gradual bidirectional change of conductance. • Pulses of duration with 60 μs are possible to adjust device conductance which mimics the learning process of neuron. • Tunable memory lifetimes from few seconds to tens of thousands of seconds are realised to mimic forgetting process. Titanium dioxide memristors are promising next generation devices for neuromorphic computing, which can mimic synapses of human brain. With respect to meet satisfactory performance, gradual conductance changes and stability of cycling are essential. In this work, nitrogen-doped titanium dioxide nanorod arrays (N-TiO 2 NARs) memristors with high performance have been fabricated using a hydrothermal process. The X-ray photo electron spectra confirm the existence of Ti‒N bonds, with uniform distribution of nitrogen confirmed by elemental mapping. The bidirectional gradually changing conductance and endurance of over 8000 cycles have been achieved. The ratio of high resistance state (HRS) and low resistance state (LRS) exceeds 16. The synaptic features, such as potentiation, depression, paired pulse facilitation (PPF), experience-learning and STDP have been achieved using continuous sweeping voltage and pulse trains respectively. It is possible to emulate the learning processes by stimulating the memristor using pulses of different amplitude, duration and interval. By manipulating the stimulation pulse duration, voltage and current compliance, memory lifetimes (MLTs) can be tuned from seconds to tens of thousands of seconds. These transitional processes are associated with anion vacancy creation/accumulation and diffusion. Those synaptic features and tunable MLTs provide a promising approach for neuromorphic computing.