[CH:1]1[CH:2]=[CH:3][C:4]2[S:15][C:14]3[CH:13]=[CH:12][CH:11]=[CH:10][C:9]=3[N:8]=[C:7]([N:16]3[CH2:21][CH2:20][N:19]([CH2:22][CH2:23][O:24][CH2:25][CH2:26][OH:27])[CH2:18][CH2:17]3)[C:5]=2[CH:6]=1.Cl.[OH2:29].[CH3:30][OH:31].[OH-:32].[Na+].[C:34]1([CH3:40])C=CC=C[CH:35]=1>>[CH:1]1[CH:2]=[CH:3][C:4]2[S:15][C:14]3[CH:13]=[CH:12][CH:11]=[CH:10][C:9]=3[N:8]=[C:7]([N:16]3[CH2:21][CH2:20][N:19]([CH2:22][CH2:23][O:24][CH2:25][CH2:26][OH:27])[CH2:18][CH2:17]3)[C:5]=2[CH:6]=1.[CH:34](/[C:40]([OH:24])=[O:32])=[CH:35]\[C:30]([OH:31])=[O:29]Quetiapine hydrochloride (6 g) was added to a mixture of water (10 ml) and methanol (10 ml). The mixture was stirred for ca. 10 min to dissolve solid material. Toluene 30 ml was added and the pH of the solution was adjusted to 13-14 by addition of 50% NaOH solution. The mixture was heated to 40-50° C. and stirred for 10 min. The toluene phase was separated and washed once with water (10 ml). The toluene solution was evaporated under reduced pressure. The remaining residue was dissolved to 80% ethanol (24 ml) and fumaric acid (0,85 g) was added to the solution. The mixture was heated to reflux for 10 min and cooled to 0° C. The solid material was filtered to give pure white crystals of quetiapine fumarate 4,92 g.