In doped CdS has been prepared by simple hydrothermal method and characterized by X-ray diffraction, scanning electron microscopy, UV–vis spectrometer, and X-ray photoelectron spectroscopy techniques. The photocatalytic activity of the prepared samples was tested by Rhodamine B degradation under simulated solar light with the comparison of pure CdS sample. The results show that all the prepared samples have fine crystallinity, and In3+/Cd2+ molar ratio greatly affects the morphology and photocatalytic activity of the samples. In doped CdS reve...