Superparamagnetic N-doped graphene oxide (GO)- with ZnS nanowires was synthesized by a one-step hydrothermal method by doping dilute amounts of Ga, Cr, In, and Al ions for water treatment and biomedical applications. In these experiments, to enhance their properties, 2% of Ga3+, In3+, and or Al3+were codoped along with 2% Cr ions in these ZnS nanowires. The nanocomposite with the composition, In0.02Cr0.02Zn0.96S, has better photocatalytic efficiency than other co-doped nanocomposites. The In (metalloids) and Cr (transition metal ion) are the best combinations to increase the magnetic properties which are beneficial for photocatalytic activity. Synthesized nanocomposite materials were characterized by several techniques such as X-ray diffraction, Field emission-scanning electron microscope (FESEM) with EDAX, vibrating sample magnetometer (VSM), UV–Vis, X-ray photoelectron spectroscopy (XPS), and fluorescence spectroscopy. The correlation of intriguing magnetic properties with their photocatalytic properties is also discussed. XPS was employed for the detection of surface defects, phase transformation, and the nature of chemical components present in the nanocomposites. The Frankel and substitutional defects have a direct impact on photocatalytic activity that was determined from the fluorescence (FL) spectroscopy. FL and XPS reveal that the Cr and In codoped composite has a higher percentage of defects hence its photocatalytic efficiency reaches 94.21%.