Hantzsch pyrrole synthesis

The Hantzch pyrrole synthesis is the chemical reaction of β-ketoesters (1) with ammonia (or primary amines) and α-haloketones (2) to give substituted pyrroles (3).