Amino-functionalized CoFe2O4@SiO2 nanoparticles have been used as an efficient catalyst for the preparation of 2,4-diamino-6-arylpyrimidine-5-carbonitrile derivatives by the one-pot reaction of aromatic aldehydes, malononitrile, and guanidine hydrochloride under conventional heating, microwave, and ultrasound irradiations. This method provides several advantages including mild reaction conditions, the reusability of the catalyst and low catalyst loading, and the use of microwave and ultrasonic irradiation as a valuable and powerful tool.