The reaction of piperidine-4-carboxylic acid (I) with SOCl2 gives the acyl chloride (II), which is treated with methanol to yield the methyl ester (III). Finally, this compound is condensed with 4-chloro-1-(4-fluorophenyl)-1-butanone (IV) by means of K2CO3 in refluxing acetone.