The Hantzsch pyridine synthesis or Hantzsch dihydropyridine synthesis is a multi-component organic reaction between an aldehyde such as formaldehyde, 2 equivalents of a β-keto ester such as ethyl acetoacetate and a nitrogen donor such as ammonium acetate or ammonia.