[NH2:1][C:2]1[N:6]([CH3:7])[N:5]=[CH:4][CH:3]=1.Cl.[N:9]([O-])=[O:10].[Na+]>O>[NH2:1][C:2]1[N:6]([CH3:7])[N:5]=[CH:4][C:3]=1[N:9]=[O:10]To a solution of 5-amino-1-methylpyrazole (100 g) in water (700 ml) were added concentrated hydrochloric acid (86 ml) and sodium nitrite (63.9 g) in water (200 ml) at a temperature below 10° C. The reaction mixture was stirred at 5° C. for 30 minutes. The precipitated solid was collected by filtration and dried to give 5-amino-1-methyl-4-nitrosopyrazole (117 g).