In this paper, polystyrene (PS) opals template, opal with a closed-packed face centered cubic (fcc) lattice, was prepared using vertical deposition method. The template provided void space for infiltration of Nb2O5 etc. PS colloidal nanospheres was face-centered-cubic (FCC) structure with its (111) planes parallel to the substrate. Finally, the transfer matrix method (TMM) was used to calculate photonic band-gap of PS opal and Nb2O5 inverse opal structure. The calculation results show that the photonic band-gap of Nb2O5 with inverse opal structure is wider than that of PS opals.