Prucalopride is synthesized by condensation of 4-amino-5-chloro-2,3-dihydrobenzofuran-7-carboxylic acid (I) with 1-(3-methoxypropyl)piperidin-4-amine (II) by means of ethyl chloroformate and triethylamine in chloroform.