Methyl 6-oxo-4-phenyl-2-[(Z)-2-(pyridin-2-yl)ethenyl]-1,4,5,6-tetrahydropyridine-3-carboxylate

In the title molecule, C20H18N2O3, an intramolecular N—H⋯O hydrogen bond leads to a cis conformation of the pyridinyl-vinyl fragment. The phenyl and pyridine rings are inclined to one another by 77.3 (1) °. In the crystal, molecules are linked via pairs of C—H⋯O hydrogen bonds, forming inversion dimers. The dimers are linked by C—H⋯O hydrogen bonds and C—H⋯π interactions, forming a three-dimensional structure.