[CH3:1][N:2]1[C@H:6]2[C@@H:7]([C:19]([O:21][CH3:22])=[O:20])[C@@H:8]([O:10]C(C3C=CC=CC=3)=O)[CH2:9][C@@H:3]1[CH2:4][CH2:5]2>Cl>[CH3:1][N:2]1[C@H:6]2[C@@H:7]([C:19]([O:21][CH3:22])=[O:20])[C@@H:8]([OH:10])[CH2:9][C@@H:3]1[CH2:4][CH2:5]2Cocaine (Merck) (3.91 g) was dissolved in 100 ml IN HCl and heated to reflux for 19 hours. After cooling to room temperature, the benzoic acid was filtered and washed with water. The water was washed with chloroform several times and the water was removed in vacuo. The residue was dissolved in 200 ml anhydrous methanol and the solution was saturated with HCl gas. The reaction mixture was refluxed for 17 hours. After cooling to room temperature, the solvent was removed in vacuo. The residue was dissolved in water and basified with potassium carbonate to pH 9. The basic water was extracted with methylene chloride several times. After drying the organic layer over sodium sulfate, the solvent was removed in vacuo to yield ecgonine methyl ester as an oil.