The reaction of 4-amino-1,2,4-triazolium salts (5a,b) with polarized o
lefins (3a,b,4a) in the presence of K2CO3 in EtOH or DMSO directly yie
lded the back-donated 1,6-cyclization products, mesomeric betaines (6a
-c,7a,b) via N-vinylimino ylides, while the reaction of the salts (5a,
b) with polarized olefins (4b,c) gave the 1,5-dipolar cyclization prod
ucts, pyrazoles (10a,b) and [1,2,4]-triazolo[4,3-b]pyrazole (11).