Cadmium sulfide was prepared by first turning it into a powder, which was then used to evaporate heat to create thin films. Additionally, the spray pyrolysis method was used to produce films of cadmium sulfide. A structural comparison using the crystallize size and lattice parameters. Furthermore for the prepared samples, an analysis of their optical characteristics was conducted through measurements of absorbance, transmission, and reflection, resulting in the determination of the energy gap.