A versatile strategy for divergent and diastereoselective synthesis of natural product-like polyhydroxylated indolizidines.