Reaction of 4-chloroaniline (I) with gamma-butyrolactone (II) in a refluxing solution of HCl afforded pyrrolidinone (III). Subsequent carboxylation of (III) with diethyl carbonate in the presence of NaH gave ketoester (IV), which was reduced to alcohol (V) using calcium borohydride in MeOH. Further treatment of (V) with methanesulfonyl chloride and Et3N provided the corresponding mesylate (VI). Methoxyethylpiperazine (IX) was prepared by alkylation of formylpiperazine (VII) with 2-methoxyethyl bromide, followed by acid deprotection of the alkylated formylpiperazine (VIII). Then, condensation of mesylate (VI) with piperazine (IX) provided racemic (X). Finally, resolution with D-tartaric acid in EtOH yielded the target (R)-isomer.