[NH2:1][C:2]1[C:3]2[CH:15]=[C:14]([CH3:16])[S:13][C:4]=2[NH:5][C:6]2[CH:12]=[CH:11][CH:10]=[CH:9][C:7]=2[N:8]=1.[CH3:17][N:18]1[CH2:23][CH2:22]N[CH2:20][CH2:19]1.CO>O>[CH3:16][C:14]1[S:13][C:4]2[NH:5][C:6]3[CH:12]=[CH:11][CH:10]=[CH:9][C:7]=3[N:8]=[C:2]([N:1]3[CH2:22][CH2:23][N:18]([CH3:17])[CH2:19][CH2:20]3)[C:3]=2[CH:15]=14-Amino-2-methyl-10H-thieno-[2,3-b][1,5]benzodiazepine (5 g, 0.02 mol), N-methylpiperazine (12.5 mL, 2.5 vol) and methanol (15 mL, 3 vol) were charged into a three-necked round bottom flask equipped with a reflux condenser, overhead stirrer, and thermometer. The reaction mixture was slowly heated under nitrogen to reflux (75° C.) and kept at this temperature overnight. The reaction mixture was allowed to cool to below 50° C. and water (15 mL, 3 vol) was added. The precipitated light yellow solid was isolated by filtration, then was washed twice with water (5 mL) and dried to provide olanzapine in 74% yield (4.35 g).