Studies on the synthesis of valienamine and 1-epi-valienamine starting from D-glucose or L-sorbose.