We developed novel zinc-cadmium-bismuth sulfide (Zn–Cd–Bi2S3) and Zn–Cd–SnS nanocomposites to fabricate a heterojunction by an easy chemical technique to improve photocatalytic degradation of textile dye. Crystalline size and lattice parameter are analyzed using X-ray diffraction (XRD) spectrometer. The obtained strong diffraction peaks with various diffraction planes confirm the fabrication of a high crystal quality nanocomposite as well as the identification of its mixed crystal structure. The morphological information is studied using scanning electron microscopy (SEM) and high-resolution transmission electron microscopy (TEM). Due to its higher surface energy, the as-prepared nanocomposite displayed agglomeration by adjoining to tiny particles. The roughness of surface is studied by atomic force microscopy (AFM). Fourier transform-infrared spectroscopy (FT-IR) used to study about presence of organic functional groups on the surface of nanocomposite. Using UV–Visible and photoluminescence spectra, the impact of shifting the positions of Sn and Bi ions on the optical characteristics is investigated. Thermal property of the nanocomposite is studied by thermogravimetric–differential thermal analysis (TG–DTA) at air atmosphere. We examine and compared the photocatalytic activity of Zn–Cd–Bi2S3 and Zn–Cd–SnS nanocomposites for the crystal violet (CV) dye. Under the sun light irradiation Zn–Cd–Bi2S3 nanocomposite demonstrated a highest percentage of degradation (88.5%) within a short period (120 min). The obtained photocatalytic results indicate that the active radicals •O2-, h+, and •OH- are favourable for the photocatalytic reaction. A possible photocatalytic mechanism for the dye degradation for the photocatalyst is proposed. Due to the narrow band gap, wide range of incident light captured by the heterostructure nanocomposite and the photogenerated electrons and holes is effectively separated in the Zn–Cd–Bi2S3.