The intermediate anilinoquinoline (III) was obtained by nucleophilic substitution of 4,7-dichloroquinoline (II) with 3,5-diaminobenzyl alcohol (I) in the presence of N-methylmorpholine. Coupling of (III) with chloroacetic acid gave the corresponding chloroacetamide (IV), which was further reacted with piperidine in DMF, yielding the piperidino acetamide (V). The benzyl alcohol function of (V) was then oxidized to aldehyde (VI) employing manganese dioxide. Finally, reductive condensation of aldehyde (VI) with morpholine in the presence of NaBH(OAc)3 furnished the title compound.