In this study, the synthesis of magnetic nanoparticles (MNPs) employing leaf extract from Alocasiamacrorrhiza was investigated as a reducing agent. CuFe 2 O 4 , CuFe 2 O 4 /CuO, and CuFe 2 O 4 /CuO/CdS made constituted the coreshell of these MNPs, which were stabilized on naturally Ninevite rocks (NRs) to provide a more cost-effective support. Analytical techniques of various methods were used to characterize the MNPs/NR nanocomposite that was produced utilizing eco-friendly methods. Among the methods used were infrared spectroscopy, X-ray diffraction, scanning electron microscopy, and vibrating sample magnetometry (VSM). The antibiotic Metronidazole (MET) was broken down using a potent nanocatalyst made of MNPs in a solar-irradiated batch system. A solarphotocatalytic system was used to investigate the effects of the initial MET concentration, irradiation time, H 2 O 2 concentration, catalyst nanocomposite concentration, and pH solution on MET photodegradation. Artificial neural networks (ANNs) were also used in data modeling to determine which oxidation technique performed the best in certain conditions. This investigation showed that the CuFe 2 O 4 /CuO/CdS magnetic catalyst had the greatest MET removal efficiency of 97% among all MNPs. Moreover, ANN were used to examine data from the photocatalytic oxidation of MET utilizing a CuFe 2 O 4 /CuO/CdS/NRs catalyst. The results revealed that the MNP dose had the highest influence on the photodegradation of MET. The correlation coefficients (R 2 ) for the training regressions, validation, testing, and total data were all 0.999, 0.996, 0.993, and 0.998, respectively.