Step 2) Synthesis of 3-methyl-5-nitro-1H-indazole: 1-(2-hydroxy-5-nitrophenyl)ethanone (0.54 g, 3 mmol) was dissolved in anhydrous hydrazine (2 mL) and the reaction was stirred under microwave radiation for 5 min at 150 °C. After completion of the reaction, water (0.5 mL) was added at 0 °C to quench the reaction. The reaction mixture was diluted with ethyl acetate (10 mL) and subsequently washed with water. The organic layer was dried over anhydrous magnesium sulfate and concentrated under reduced pressure. The residue was recrystallized by dichloromethane to give the title compound in 80% yield.1H-NMR (300 MHz, CDCl3) δ 8.78 (s, 1H), 8.27 (m, 1H), 7.86 (m, 1H), 2.79 (s, 3H).