Boron doped CdS thin films were deposited by spray pyrolysis method using perfume atomizer. The effects of ultraviolet light on the structural, optical and electrical properties of B-doped CdS thin films were investigated as a function of dopant concentration (B/Cd). X-ray diffraction studies showed that all samples were polycrystalline nature with hexagonal structure. It was determined that the preferred orientation of non-illuminated samples changes from (1 0 1) to (0 0 2) with B concentration. The c lattice constant of films decreases from 6.810 angstrom to 6.661 angstrom with boron doping. The XRD peak intensity increased with the illumination for almost all the samples. The lattice parameters of B-doped samples remained nearly constant after illumination. It was found that the optical transmittance, photoluminescence spectra, resistivity and carrier concentration of the B-doped samples are stable after the illumination with UV light. Also the effects of UV light on B-doped CdS/Cu2S solar cell were investigated and it was determined that photoelectrical parameters of B-doped solar cell were more durable against the UV light. (C) 2013 Elsevier B.V. All rights reserved.