The reaction of p-chloroaniline (I) with ethyl 4-oxopiperidine-1-carboxylate (II) by means of tosyl chloride in refluxing toluene gives ethyl 4-(p-chlorophenylimino)piperidine-1-carboxylate (III), which is reduced with NaBH4 in refluxing methanol to afford ethyl 4-(p-chloroanilino)piperidine-1-carboxylate (IV). The acylation of (IV) with phenylacetyl chloride (A) in refluxing benzene yields ethyl 4-[N-(p-chlorophenyl)-N-(phenylacetyl)amino]piperidine-1-carboxylate (V), which is decarboxylated with hot aqueous HBr giving N-(p-chlorophenyl)-N-(piperidin-4-yl)phenylacetamide hydrochloride (VI). Finally, this compound is alkylated with 2-bromopropane (B) and Na2CO3 in refluxing butanol.