In this paper, we describe an efficient and atom-economical synthesis of highly functionalized pyrroles, pentafulvenes, and pyrrolopyridines by [2+2] cycloaddition-retroelectrocyclization of N-substituted propargylamines with tetracyanoethylene, followed by the treatment of the resulting tetracyanobutadiene derivatives with silica gel. In this reaction, silica gel plays an important role to promote the intramolecular cyclization to afford the heterocyclic products from the tetracyanobutadiene intermediates. The products were obtained selectively depending on the substituent on the nitrogen atom of the starting propargylamines.