The reaction of 6-methylpyridine-2-carboxylic acid (I) with refluxing SOCl2 gives 6-methylpyridine-2-carbonyl chloride (II), which is condensed with 5-aminotetrazole (III) by means of triethylamine in hot DMF.