ZnO thin films were deposited on soda lime glass substrates by the sol–gel dip-coating method with variations of the initial Zn2+ concentrations. Various techniques such as X-ray diffraction (XRD), scanning electron microscopy (SEM), atomic force microscopy (AFM), and transmission electron microscopy (TEM) were used to investigate the effects of the initial Zn2+ concentrations on the structure, and surface morphology and topography of the prepared films. All prepared ZnO thin films showed a high transparency of over 88% in the visible region. The particle size increased with an increased initial Zn2+ concentration. This also reduced the surface denseness and the energy band gap of the ZnO thin films. All the prepared films showed photocatalytic properties through photodegradation of the methylene blue (MB) dye. The ZnO thin film prepared from the 0.1 M Zn2+ concentration showed the greatest efficiency as it had the highest surface area because of its greatest surface roughness. Furthermore, the prepared ZnO thin film showed antibacterial activities against the Escherichia coli bacterium.