[N:1]([O-])=O.[Na+].[CH3:5][O:6][C:7]1[CH:13]=[CH:12][C:10]([NH2:11])=[C:9]([CH3:14])[CH:8]=1>O.C(O)(=O)C>[CH3:5][O:6][C:7]1[CH:8]=[C:9]2[C:10](=[CH:12][CH:13]=1)[NH:11][N:1]=[CH:14]2A solution of sodium nitrite (3.38 g, 49.0 mmol) in water (8.1 ml) was added to a solution of 4-methoxy-2-methylaniline (6.69 g, 48.8 mmol) in acetic acid (350 ml) in an ice-water bath while maintaining the temperature at 25° C. or lower, and stirred overnight at room temperature. Then, the reaction solution was poured into water and extracted with chloroform. The organic layer was washed with a saturated aqueous sodium chloride solution, dried over anhydrous magnesium sulfate and then distilled under reduced pressure to remove the solvent, and the resulting residue was purified by a silica gel column chromatography (eluent: chloroform/methanol=9/1) to obtain 5-methoxy-1H-indazole (1.30 g, 18%).