TiO2-xNx film was prepared by the combination of sol-gel and spin-coating method on indium-tin oxide (ITO) conducting glass substrate. Then an ITO/TiO2-xNx/NiO composite electrode was obtained by chemical bath deposition (CBD). The morphology, crystal structure and composition of the ITO/TiO2-xNx film were characterized by SEM, XRD, and XPS. The photoelectrochemical properties of the ITO/TiO2-xNx/NiO electrode were evaluated by photocurrent transient measurements and UV-visible transmittance spectra. The results showed that the ITO/TiO2-xNx/NiO electrode was sensitive to light and exhibited a noticeable photoelectrochromism.