Wittig reaction of 1-methylpyrrole-2-carboxaldehyde (I) with (ethoxycarbonylmethylene)triphenylphosphorane furnishes the pyrrolylacrylate ester (II), which is subsequently hydrogenated over Pd/C to the pyrrolylpropionate (III). Friedel-Crafts acylation of pyrrole (III) with 6-chloronicotinoyl chloride (IV) gives rise to the pyrrolyl ketone (V). After alkaline hydrolysis of the ethyl ester group of (V), the resultant carboxylic acid (VI) is converted into the corresponding acid chloride (VII) employing oxalyl chloride and DMF. Finally, coupling of acid chloride (VII) with the known aniline derivative (VIII) leads to the desired amide.