In order to narrow the band gap of TiO2, nitrogen doping by combining thermal atomic layer deposition (TALD) of TiO2 and plasma enhanced atomic layer deposition (PEALD) of TiN has been implemented. By altering the ratio between TALD TiO2 and PEALD TiN, the as synthesized TiOxNy films showed different band gaps (from 1.91 eV to 3.14 eV). In situ x-ray diffraction characterization showed that the crystallization behavior of these films changed after nitrogen doping. After annealing in helium, nitrogen doped TiO2 films crystallized into rutile phase while for the samples annealed in air a preferential growth of the anatase TiO2 along (001) orientation was observed. Photocatalytic tests of the degradation of stearic acid were done to evaluate the effect of N doping on the photocatalytic activity.