6-Alkylated-8-azido-1,6-octadiene derivatives were prepared from methyl α-D-mannopyranoside. The sequence to allylic azide precursors included a Horner-Wadsworth-Emmons reaction with a concomitant epimerization that ultimately enabled synthesis of 1-deoxynojirimycin as well as 1-deoxymannojirimycin derivatives. Thermally promoted allylic acid rearrangement followed by triazoline formation, then decomposition to [a]