Lactones are cyclic esters that are obtained by intramolecular esterification from molecules containing acid and alcohol groups. This cyclization forms 5- or 6-membered cycles.

 sintesis-lactonas

 
The mechanism of this reaction occurs in the following steps:
 
Stage 1. Protonation of the carboxylic group
 
sintesis-lactonas
 
Step 2. Nucleophilic addition of the alcohol to the carboxylic group (cyclization step)
 
sintesis-lactonas
 
Stage 3. Acid-base balance
 
sintesis-lactonas
 
Stage 4. Water removal
 
sintesis-lactonas