The electrospinning method coupled with a chemical reaction is employed to fabricate a TiO2/CdS composite fiber. The concentration of CdS can be changed by varying the amount of CdCl2 present as the crystal seed in the precursor sol. The DRUV-Vis spectra results show that the TiO2/CdS composite fiber absorbs both in the UV and visible regions. The results of TEM, XRD, PL, CLSM and Raman spectra also confirm the formation of CdS in TiO2 fibers.