[Cl-].[Al+3].[Cl-].[Cl-].[C:5](Cl)(=[O:7])[CH3:6].[Cl:9][CH2:10][CH2:11][CH2:12][CH2:13][N:14]1[C:20](=[O:21])[C:19]2[CH:22]=[CH:23][S:24][C:18]=2[S:17][CH2:16][CH2:15]1.O>C(Cl)Cl>[C:5]([C:23]1[S:24][C:18]2[S:17][CH2:16][CH2:15][N:14]([CH2:13][CH2:12][CH2:11][CH2:10][Cl:9])[C:20](=[O:21])[C:19]=2[CH:22]=1)(=[O:7])[CH3:6]To a suspension of 13 g of aluminum chloride in 150 ml of methylene chloride was added 4.6 ml of acetyl chloride under ice-cooling and the mixture was stirred for 15 minutes. To the mixture was added a solution of 9.0 g of 4-(4-chlorobutyl)-2,3-dihydrothieno[3,2-f]-1,4-thiazepin-5(4H)-one in 20 ml of methylene chloride and the mixture was stirred at room temperature of 2 hours. Then, the mixture was poured into chilled water and extracted with chloroform. The extract was washed with water, dried over magnesium sulfate and the solvent was distilled off. The resulting crystals were recrystallized from ethyl acetate to give 6.9 g of 7-acetyl-4-(4-chlorobutyl)-2,3-dihydrothieno-[3,2-f]-1,4-thiazepin-5(4H)-one as white crystals, melting at 132°-134° C.