Porous ZnO films were prepared by electrodeposition method in zinc nitrate aqueous solution using ITO glass covered with polystyrene sphere (PS) colloidal crystal arrays as substrates. The preparation procedure includes two parts: deposition of ZnO in the interstices of the colloidal crystals and subsequent removal of the PS templates. The influences of deposition potential and temperature on the ZnO films were investigated. The ordered, uniform porous ZnO films with optical transmittance of approximately 63.6% at 600 nm could be obtained when the deposition potential and temperature were –1.1 V and 70 ℃, respectively. The optical band gap energy increased along with the absolute deposition potential and temperature, ranging from 3.33 to 3.43 eV and from 3.35 to 3.42 eV, respectively.