[CH3:1][C:2]1[CH:10]=[C:9]2[C:5]([CH:6]=[C:7]([C:11]([OH:13])=[O:12])[NH:8]2)=[CH:4][CH:3]=1.P(Cl)(Cl)(Cl)=O.[CH3:19]O>>[CH3:19][O:12][C:11]([C:7]1[NH:8][C:9]2[C:5]([CH:6]=1)=[CH:4][CH:3]=[C:2]([CH3:1])[CH:10]=2)=[O:13]A solution of 6-methylindole-2-carboxylic acid (38.2 g.) in methanol (400 ml.) containing phosphorus oxychloride (5 ml.) was heated under reflux for 4 hours and then evaporated. The residue was dissolved in chloroform and the solution was washed successively with water and sodium bicarbonate solution and then dried (Na2SO4). Evaporation of the solvent gave a solid which was crystallized from methanol to give 6-methylindole-2-carboxylic acid methyl ester (28.1 g.), m.p. 128°-131° C.