Acylation of 2,4-dimethylimidazole (I) with 2,4-dichlorobenzoyl chloride (II) in the presence of diisopropylethylamine, followed by acidic hydrolysis, provides the 2-imidazolyl acetophenone (III). Subsequent condensation of (III) with dimethylformamide dimethylacetal gives rise to the enaminone (IV)
Condensation of 2-chloro-5-cyanopyridine (V) with ethylenediamine (VI) yields the N-pyridyl ethylenediamine (VII). Subsequent reaction of amine (VII) with pyrazole-1-carboxyamidine (VIII) in refluxing acetonitrile affords guanidine (IX). Finally, condensation between guanidine (IX) and enaminone (IV) in the presence of NaOEt produces the title pyrimidine derivative