Several new pyridine and thieno[2,3-b]pyridine derivatives were synthesized via the reactions of some pyridinethiones, obtained by the action of acetylacetone on some thiocarboxamidocinnamonitriles, with halogenated esters and ketones. Structures were established based on elemental and spectral data. All the synthesized compounds were tested for their biological activity.