In this study, we present an efficient, environmentally friendly, and solvent-free one-pot synthesis of 3,4-dihydropyrimidin-2(1H)-ones using MgFe2O4@CeO2 core-shell magnetic nanoparticles as a highly effective catalyst. These nanoparticles were synthesized via a green method, employing tragacanth gum as a stabilizer, and characterized using various techniques such as XRD, FESEM, TEM, EDX, and VSM analysis. The proposed synthesis offers several benefits, including high yields, short reaction times, mild conditions, simple work-up procedures, and excellent recyclability of the catalyst. This green approach emphasizes the potential of core-shell nanoparticles in the sustainable synthesis of valuable compounds, showcasing a significant advancement in green chemistry and nanotechnology for pharmaceutical applications