[CH3:1][O:2][C:3]1[CH:23]=[CH:22][C:6]2[N:7]=[C:8]([S:10][CH2:11][C:12]3[C:17]([CH3:18])=[C:16]([O:19][CH3:20])[C:15]([CH3:21])=[CH:14][N:13]=3)[NH:9][C:5]=2[CH:4]=1.ClC1C=C(C=CC=1)C(OO)=[O:29]>C(OCC)(=O)C>[CH3:21][C:15]1[CH:14]=[N:13][C:12]([CH2:11][S+:10]([O-:29])[C:8]2[NH:7][C:6]3[CH:22]=[CH:23][C:3]([O:2][CH3:1])=[CH:4][C:5]=3[N:9]=2)=[C:17]([CH3:18])[C:16]=1[O:19][CH3:20]5-methoxy-2-[[(4-methoxy-3,5-dimethyl-2-pyridyl)methyl]thio]benzimidazole (10 g; 0.0304 mole) was suspended in ethyl acetate (100 ml) and cooled below 0° C. 3-chloroperoxybenzoic acid (5.25 g; 0.0304 mole) was added in such a manner that the temperature did not exceed 5° C. After completed addition it was left to crystallize for another half an hour at a temperature below 5° C. The product formed was filtered off, washed with ethyl acetate and dried in vacuo. Crude omeprazole (8.3 g; 79.1%) was obtained.