5-dihydro-1H-pyrrole-2-carboxylates by two-component condensation reaction of ethyl pyruvate and aniline derivatives under catalyst-free and solvent-free conditions is described. The advantages of this method are practical simplicity, catalyst-free and solvent-free conditions, high atom economy, short reaction times, and good yields of the products. The anticancer potential of synthesized compounds was evaluated