The synthesis of polyaniline (PANI) with semiconducting layered niobate (NbO) to form PANI/NbO hybrid materials and their reversible color change under a unique redox process under the influence of UV and/or visible light have been investigated. The in-situ polymerization of anilinium chlorides (ANI) packed in a regular orientation in a bilayer structure within the NbO interlayers led to PANI/NbO hybrid powders by heat treatment using (NH4)2S2O8 as the catalyst. The resulting PANI of these hybrids showed the characteristics of a fully oxidized quinoid form, i.e., pernigranine (PG). The PANI/NbO suspension in H2O was cast on a glass substrate to form a PANI/NbO film after evaporation of the water with a good parallel orientation of the NbO layers against the glass substrate. Upon UV light irradiation in the presence of a reductant such as MeOH, the violet-colored PANI (PG) polymers within the NbO interlayers were reduced by the NbO-induced photocatalytic reactions and led to a colorless PANI, i.e., leucoemeraldine (LE). Moreover, the resulting colorless PANI/NbO films reverted back to a blue-colored PANI, i.e., emeraldine (EM), due to oxidation by the surrounding O2 gas. The PANI/NbO hybrid films were able to retain repetitive and reversible photoinduced patterning for over 50 cycles under such alternate UV and visible light irradiation.