A series of pentahydroxylated pyrrolidines, displaying five contiguous stereogenic centres and epimeric to α-glucosidase inhibitor homoDMDP, have been synthesized. The key step involves a γ-aminoalcohol rearrangement applied to polyhydroxylated azepanes. These five-membered iminosugars demonstrate micromolar inhibition of glycosidases.