A new and general method of iodine-mediated cyclization reactions of allyl or homoallyl carbamates, ureas, and amides was found to give N-cyclized products as single regioisomers. The present reaction proceeded in good yield through regiocontrol (N-cyclization > O-cyclization) and the increase in the reactivity of an ambident nucleophile by a basic metallic reagent. The N-cyclization selectivity was