[N:1]1[CH:6]=[CH:5][CH:4]=[N:3][C:2]=1[N:7]1[CH2:12][CH2:11][N:10]([CH2:13][CH2:14][CH2:15][CH2:16]Br)[CH2:9][CH2:8]1.[NH:18]1[CH:22]=[CH:21][CH:20]=[N:19]1.C(=O)([O-])[O-].[K+].[K+]>CN(C)C=O>[N:1]1[CH:6]=[CH:5][CH:4]=[N:3][C:2]=1[N:7]1[CH2:12][CH2:11][N:10]([CH2:13][CH2:14][CH2:15][CH2:16][N:18]2[CH:22]=[CH:21][CH:20]=[N:19]2)[CH2:9][CH2:8]1A mixture of 4 g (13.3 mmol) of 1-(2-pyrimidinyl)-4-(4-bromobutyl)piperazine, 1.02 g (15 mmol) of pyrazole and 2.76 g (20 mmol) of potassium carbonate in 50 ml of dimethylformamide is heated to reflux for 14 hours. The mixture is evaporated under vacuum, chloroform is added, the organic phase is washed with water, dried over sodium sulphate and evaporated under vacuum, and 3.5 g of an oil which is 1-{4-[4-(2-pyrimidinyl)-1-piperazinyl]butyl}-1H-pyrazole are obtained.