A versatile and stereoselective synthesis of functionalized cyclobutenes.