Total synthesis of pipecolic acid and 1-C-alkyl 1,5-iminopentitol derivatives by way of stereoselective aldol reactions from (S)-isoserinal.