The enolate anion then acts as a nucleophile and attacks the carbonyl carbon of a second carbonyl-containing molecule in the reaction. The intermediate aldol product, the β-hydroxyacid undergoes rapid dehydration under these conditions, to give the α,β-unsaturated diacid.