A base-catalyzed selective cycloisomerization of 3-aza-1,5-enynes is developed. This transformation provides a facile access to highly functionalized 2-azabicyclo[3.2.0]hept-2-enes and sulfonyl vinyl-substituted pyrroles. The chemoselectivity was controlled by the substituent pattern of the substrates.