As a new approach, pyrrolo[1,2-a]pyrazines were synthesized through the cyclization of 2-formylpyrrole-based enaminones in the presence of ammonium acetate. The enaminones were prepared with a straightforward method, reacting the corresponding alkyl 2-(2-formyl-1H-pyrrol-1-yl)acetates, 2-(2-formyl-1H-pyrrol-1-yl)acetonitrile, and 2-(2-formyl-1H-pyrrol-1-yl)acetophenones with DMFDMA. Analogous enaminones elaborated from alkyl (E)-3-(1H-pyrrol-2-yl)acrylates were treated with a Lewis acid to afford indolizines. The antifungal activity of the series of substituted pyrroles, pyrrole-based enaminones, pyrrolo[1,2-a]pyrazines, and indolizines was evaluated on six Candida spp., including two multidrug-resistant ones. Compared to the reference drugs, most test compounds produced a more robust antifungal effect. Docking analysis suggests that the inhibition of yeast growth was probably mediated by the interaction of the compounds with the catalytic site of HMGR of the Candida species.