The arylation of 1,2,4-triazol-4-amine (I) with 4-fluorobenzonitrile (II) by means of NaH in DMSO gives 4-(1,2,4-triazol-4-ylamino)benzonitrile (III), which is then condensed with 4-bromobenzyl bromide (III) by means of K2CO3 in acetonitrile.