Friedel-Crafts acylation of chlorobenzene (I) with levulinic acid chloride (II) afforded diketone (III), which was converted to pyrrole (V) by condensation with 4-chloroaniline (IV) in the presence of a catalytic amount of HBr. Mannich reaction of (V) with formaldehyde and N-methylpiperazine (VI) then provided the target aminomethyl pyrrole.