A simple, economical, and green approach to the synthesis of N-substituted pyrrolesusingsodiumdodecylsulfate as surfactant in water is described. The experiment protocol features simple operations, and the products are isolated in high to excellent yields (60–98%).