Pyrazolyl triazoles (5) were prepared by 1,3-dipolar cycloaddition of diazomethane to Schiff base -3-ethynyl-N-(heteroarylmethylene)aniline (3), followed by oxidation with I 2 in DMSO and studied their antimicrobial activity. The pyridine and dichloropyridine substituted compounds 3d, 5c and 5d are potential antibacterial agents against Bacillus subtilis and 3d is a potential antifungal agent against Penicillium chrysogenum.