The reaction of 2-aminothiophenol (I) with diethyl benzylidenemalonate (II) by heating at 90 C gives diethyl 2-(2-aminophenylthio)-2-phenylethane-1,1-dicarboxylate (III), which is cyclized by heating at 180 C with triethylamine hydrochloride yielding 2,3-dihydro-3-ethoxycarbonyl-2-phenyl-1,5-benzothiazepin-4(5H)-one (IV). The reduction of (IV) with LiAlH4 in THF affords 2,3-dihydro-3-hydroxymethyl-2-phenyl-1,5-benzothiazepin-4(5H)-one (V), which by reaction with SOCl2 in refluxing benzene is converted into 2,3-dihydro-3-chloromethyl-2-phenyl-1,5-benzothiazepin-4(5H)-one (VII). Finally, this compound is treated with N-methylpiperazine at reflux temperature, and acidified with HCl. An alternative way is the reaction of (V) with methanesulfonyl chloride in pyridine affording 2,3-dihydro-3-methanesulfonyloxymethyl-2-phenyl-1,5-benzothiazepin-4(5H)-one (VI), which is then treated with N-methylpiperazine and HCl as before.