in the presence of a solvent ordiluent which is inert to the reactants and optionally an acid scavenger with a compound having the formulawhere R.sup.1 and X are as defined above for formula I and Z is a good leaving group, to obtain 3-substituted-5-substituted-1H-1,2,4-triazoles.