In the title compound, C20H16N4O2S, the thiophene ring subtends dihedral angles of 58.6 (3) and 9.8 (3)° with the benzamide and pyridine rings, respectively, whereas these two rings are inclined to one another by 59.3 (3)°. There is an intramolecular C—H...π interaction present involving the pyridine and benzamide rings. In the crystal, molecules are linked by N—H...O hydrogen bonds, forming chains along the [010] direction. The chains are linked by C—H...S hydrogen bonds and C—H...π interactions, forming sheets parallel to the ab plane.