Catalytic processes for the synthesis of basic chemical compounds are currently being developed. Therefore, magnesium ferrite was used as a nanoparticle to synthesize an efficient and recyclable nanocatalyst. The characterization of the catalyst was carried out using various methods such as Fourier- transform infrared spectroscopy (FT-IR), vibrating sample magnetometry, energy dispersive X-ray spectroscopy, transmission electron microscopy (TEM), scanning electron microscopy, X-ray diffraction and thermogravimetric analysis. Finally, an economical and efficient method for pyridodipyrimidine synthesis was developed using an environmentally friendly and recyclable MgFe2O4@Tris nanocatalyst in an aqueous medium. For the synthesis of pyridodipyrimidines, a four-component reaction was carried out at room temperature using aldehyde derivatives, barbituric acid and ammonium acetate as substrates. The advantages of this catalyst include high catalytic activity, high yield, short reaction time, the use of environmentally friendly solvents, easy magnetic separation and the possibility of reusing the catalyst.