[NH2:1][C:2]1[N:6]([C:7]2[CH:12]=[CH:11][CH:10]=[CH:9][CH:8]=2)[N:5]=[CH:4][C:3]=1C(OCC)=O.Cl.[NH4+].[OH-]>>[C:7]1([N:6]2[C:2]([NH2:1])=[CH:3][CH:4]=[N:5]2)[CH:12]=[CH:11][CH:10]=[CH:9][CH:8]=15-Amino-4-carbethoxy-1-phenylpyrazole (1 eq.) was dissolved in 36% HCl solution (30 eq.) and the reaction mixture was stirred under reflux for overnight. The mixture was cooled, poured onto ice and made basic with NH4OH. The mixture was extracted with DCM (×3). The combined organic fractions were washed with brine, dried (Na2SO4), and the solvent was evaporated under reduced pressure to obtain the product as pale yellow oil in 94% yield. MS (ES+) C9H9N3 requires 159, found: 160 (M+H)+.