Abstract A series of new heterocyclic derivatives having a pyridine nucleus were synthesized. 4-(5-(2-Chlorophenyl)-4H-1, 2, 4-triazol-3-yl) pyridine (7c) and 4-(5-(2- Nitrophenyl)-4H-1, 2, 4-triazol-3-yl) pyridine (7d) presented the best analgesic profie of this series in hot-plate, tail-flick, and formalin-induced licking tests, which was partially prevented by pretreatment with mecamylamine, a nicotinic receptor antagonist.