Abstract Condensation of N-substituted lactams with carboxylic acid esters was studied. A wide range of substituted 2-acyl lactams with different ring sizes were synthesized. The structure of 2-acyl lactams (primarily, the ring size) was found to influence the keto-enol tautomerism.