[NH2:1][C:2]1[N:7]=[C:6]([CH3:8])[CH:5]=[C:4](Cl)[N:3]=1.[CH3:10][NH:11][CH3:12]>C(O)C>[NH2:1][C:2]1[N:7]=[C:6]([CH3:8])[CH:5]=[C:4]([N:11]([CH3:12])[CH3:10])[N:3]=12-Amino-4-methyl-6-chloropyrimidine (52 g, 0.36 mole) is heated at 160° C. for 18 hours with ethanol and an equimolar amount of dimethylamine in a pressure vessel. The reaction mixture is evaporated in vacuo taken up in 200 ml. of water containg 50 ml. 10 N sodium hydroxide and 300 ml. of methylene chloride. The mixture is extracted with methylene chloride and the organic layer dried and evaporated to dryness in vacuo affording 46 g of 2-amino-4-methyl-6-dimethylaminopyrimidine with a melting point of 172°-174° C.