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