Novel stereoselective syntheses of highly functionalized benzannulated pyrrolizidines and indolizidines by samarium diiodide induced cyclizations of indole derivatives.