Methyl trans-rac-2-hexyl-1-oxo-3-(2-pyridyl)-1,2,3,4-tetrahydroisoquinoline-4-carboxylate

The title compound, C22H26N2O3, was synthesized by esterification of trans-rac-2-hexyl-1-oxo-3-(2-pyridyl)-1,2,3,4-tetrahydroisoquinoline-4-carboxylic acid in the presence of H2SO4 in methanol. The dihedral angle between the benzene and pyridine rings is 84.46 (17)°. The piperidine ring adopts a screw-boat conformation. In the crystal, inversion dimers linked by two C—H⋯O bonds occur.