Two new types of N-doped ZrO2 photocatalysts ZON and AZON have been synthesized using ethylenediamine as the nitrogen source by a facile and low-cost sol–gel method.