[CH3:1][C:2]1[CH2:6][CH2:5][NH:4][N:3]=1.[Na+].[Br-]>CO>[CH3:1][C:2]1[CH2:6][CH2:5][NH:4][N:3]=1.[CH3:1][C:2]1[CH:6]=[CH:5][NH:4][N:3]=1A solution of 100 g of 3-methyl-2-pyrazoline and 64 g of NaBr in 3,000 g of methanol was electrolysed with 2 F/mol of 3-methyl-2-pyrazoline at a current density of 6.8 A/dm2 at a temperature of 20° C. Customary working up of the electrolysed mixture and fractional distillation gave 24.5 g of 3-methyl-2-pyrazoline and 29.5 g of 3-methylpyrazole (boiling point 127°-131° C./98 mbar). This corresponds to a conversion of 75%, a yield of 30% and a selectivity of 40%.