The development of a Lewis acid-promoted aza-Prins reaction to form piperidines and pyrrolidines is described. Indium trichloride has been found to be a highly successful and mild Lewis acid for promoting this reaction. A thorough mechanistic investigation is described, including the factors that influence the formation of the 5- or 6-membered ring product(s).