ZnO thin films have been deposited onto the glass substrates by the sol-gel spin coating method at different chuck rotation rates. The effect of deposition parameters on the structural, optical and electrical properties of the ZnO thin films was investigated. The crystal structure and orientation of the ZnO thin films were investigated by X-ray diffraction (XRD) patterns. The optical absorbance and transmittance measurements were recorded by using a double beam spectrophotometer. The optical absorption studies reveal that the transition is direct band gap energy. The I-V plots of the ZnO thin films were carried out in dark and under UV-illumination. The result shows the obtained ZnO thin films can be used as a photovoltaic material.