2-Chloronicotinic acid (I) was reduced to alcohol (II) employing borane, generated from NaBH4 and BF3.Et2O. Subsequent oxidation of (II) with N-bromosuccinimide produced aldehyde (III), which was condensed with N-Boc-4-aminopiperidine (IV), yielding imine (V). Addition to (V) of (4-fluorophenyl)-toluenesulfonylmethyl isocyanide (VI) gave rise to imidazole (VII). Then, displacement of the 2-chloro of (VII) by means of aniline (VIII) in the presence of NaH furnished the 2-anilinopyridine derivative (IX). The Boc protecting group of (IX) was finally removed by treatment with trifluoroacetic acid.