[Cl:1][C:2]1[N:6]([CH3:7])[N:5]=[C:4]([CH3:8])[C:3]=1[CH:9]=[O:10].C(=O)([O-])[O-].[K+].[K+].[Cl:17]Cl>ClC1C=CC=CC=1>[Cl:1][C:2]1[N:6]([CH3:7])[N:5]=[C:4]([CH3:8])[C:3]=1[C:9]([Cl:17])=[O:10]To a solution of 48 g of 5-chloro-1,3-dimethyl-1H-pyrazole-4-carbaldehyde in 230 ml of chlorobenzene under protective gas are added 51.8 g of potassium carbonate. Subsequently, while illuminating with a mercury lamp, 24 g of chlorine gas are introduced at 20° C. within 4 hours. After the gas introduction has ended, the reaction solution is stirred with illumination at 20° C. for a further 20 minutes. The solid is filtered off and washed with a little chlorobenzene. After the solvent has been removed, 5-chloro-1,3-dimethyl-1H-pyrazole-4-carbonyl chloride is obtained in a yield of 95%.