[NH:1]1[C:9]2[C:4](=[CH:5][CH:6]=[CH:7][CH:8]=2)[C:3]([C:10]([O:12][CH3:13])=[O:11])=[N:2]1.[H-].[Na+].[CH3:16]I.[Cl-].[NH4+]>CN(C=O)C>[CH3:16][N:2]1[C:3]([C:10]([O:12][CH3:13])=[O:11])=[C:4]2[C:9]([CH:8]=[CH:7][CH:6]=[CH:5]2)=[N:1]1Methyl indazole-3-carboxylate (3.71 g, 21.1 mmol) was dissolved in DMF (40 ml). To the resulting solution was added sodium hydride (60% in oil, 1.01 g, 25.3 mmol) in portions under stirring at 0° C. The reaction mixture was stirred at the same temperature for 30 minutes. Methyl iodide (1.57 ml, 25.3 mmol) was added to the mixture. The resulting mixture was stirred at the same temperature for 30 minutes. A saturated aqueous solution of ammonium chloride was added and the mixture was extracted with ethyl acetate. The extract was washed with saturated brine, dried over anhydrous magnesium sulfate, and distilled under reduced pressure to remove the solvent. The residue was purified by chromatography on a silica gel column, whereby from n-hexane-ethyl acetate (3:1, v/v) eluate fractions, methyl 2-methylindazole-3-carboxylate (1.62 g, 26%) was obtained as a pale yellow solid.