The present work deals with the preparation and characterization of cadmium sulfur (CdS) thin films. These films are prepared by chemical bath deposition on the well cleaned glass substrates. The thickness of the samples was measured by using profilometer DEKTAK, structural and optical properties were studied by X-ray diffraction analysis, and UV-visible spectrophotometry. The optical properties of the films have been investigated as a function of temperature. The band gap energy and Urbach energy were also investigated as a function of temperature. From the transmittance data analysis the direct band gap ranges from 2.21 eV to 2.34 eV. A dependence of band gap on temperature has been observed and the possible raisons are discussed. Transmission spectra indicates a high transmission coefficient (75 %). Structural analysis revealed that the films showed cubic structure, and the crystallite size decreased at a higher deposition temperature.