The alkylation of N-formylpiperazine (II) with 2-(chloromethyl)quinoline (I) produced the disubstituted piperazine (III). The formyl group of (III) was then cleaved by means of H2SO4 in boiling EtOH, yielding quinolylmethylpiperazine (IV). Subsequent alkylation of (IV) with 1-bromo-3-chloropropane (V) afforded the chloropropyl derivative (VI). This was finally condensed with 7-hydroxybenzothiazinone (VII) in the presence of K2CO3 and a phase-transfer catalyst to furnish the title compound.