An efficient and green approach was developed to prepare 6-aryl-2, 4-diamino-1, 3, 5- triazines from corresponding arylnitriles and dicyanodiamide in ionic liquid [bmim][PF6] under computer-controlled microwave irradiation. Particularly valuable features of this method included the short reaction time, good yield, convenient operation and eco-friendly solvent.