XPS reveals the presence of hydroxide species in chemically deposited CdS thin films. Hydroxide group is included in CdS lattice in the deposition process. In the annealing process hydroxide group decomposes to water and CdO. Hydroxide decomposition is responsible for changes in CdS properties.