Photo-tunable photonic crystals were prepared from three dimensional (3D) colloidal crystal templates using a photoresponsive azopolymer. For the preparation of azopolymer infiltrated photonic crystals, silica colloidal crystals were fabricated by gravity sedimentation, a self-assembly technique. The interstitial voids between colloidal particles were filled with azopolymer and azopolymer inverse opals were produced by treatment with aqueous hydrofluoric acid. These photonic crystals exhibited stop bands in their transmission spectra measured in the normal incidence to the (111) plane of face centered cubic (fcc). The photonic bandgap of the azopolymer infiltrated opal and inverse opal could be controlled by the refractive index change due to the photoinduced orientation of azobenzene chromophores. When the azopolymer photonic crystals were irradiated with linearly polarized light, their bandgap positions were shifted to shorter wavelength regions with increasing irradiation time. This behavior experimentally produced a photoinduced orientation of the azobenzene groups in parallel with the incidence of the excitation light. Through such an out-of-plane orientation of azo chromophores, parallel to the  fcc crystallographic axis, the effective refractive index of the photonic crystal medium was decreased. Therefore, a blue-shift in bandgap positions was consequently induced with 20–40 nm tuning ranges. The out-of-plane orientation was confirmed by angular resolved absorption spectral measurements.