Condensation between 1-phenyl-1,4-pentanedione (I) and 4-fluoroaniline (II) under Paal-Knorr reaction conditions provides the pyrrole derivative (III). This is then subjected to Mannich reaction with thiomorpholine (IV) and formaldehyde to furnish the target thiomorpholimomethyl pyrrole.