An easy, efficient, and completely stereoselective synthesis of (E)-alpha,beta-unsaturated esters via sequential aldol-type/elimination reactions promoted by samarium diiodide or chromium dichloride.