A novel rhodium(II)-catalyzed tandem cycloisomerization of methylenecyclopropanes (MCPs) with N-sulfonyl 1,2,3-triazoles is disclosed. The reaction produces a series of highly functionalized polycyclic N heterocycles via a rhodium imino carbene intermediate. A distinct feature of this divergent synthesis is that different types of substrates control the reaction pathways. Moreover, several interesting transformations of these products to construct diazabicyclo[3.2.1]octane derivatives are also reported.