The Claisen condensation involves the reaction of esters [1] in a basic medium to form 3-ketoesters [2]

claisen-condensation.gif
Mechanism:
 
Step 1. Formation of the ester enolate
formation-enolate.gif
Step 2. Nucleophilic addition
 
attack-nucellophile.gif
 
Stage 3. Ethoxide removal
 
deletion.gif
 
The displacement of the equilibria is produced by the subtraction of the acid hydrogen in the final keto ester, forming an enolate that is protonated in the second stage.