Monodisperse SiO2 colloidal microspheres were synthesized by Stober sol gel. Effects of the composition ratios of the reactants and the reaction conditions on the SiO2 particle size and morphology were mainly investigated by using SEM. Furthermore, photonic crystal films were prepared through the vertical deposition method using different diameter, different concentrations of silica gel microspheres,and the transmission spectrum of PCF was measured. Through changing vertical deposition conditions such as microspheres particle size, the volume fraction of microspheres in the suspension and the angle between substrate and liquid surface, photonic crystal band gap characteristics was analyzed.