[NH2:1][C:2]1[CH:3]=[CH:4][CH:5]=[C:6]2[C:11]=1[NH:10][C:9](=[O:12])[CH:8]=[CH:7]2.Br.[Br:14][CH2:15][CH2:16][NH:17][CH2:18][CH2:19]Br.C(=O)([O-])[O-].[Na+].[Na+]>CN(C=O)C>[BrH:14].[N:1]1([C:2]2[CH:3]=[CH:4][CH:5]=[C:6]3[C:11]=2[NH:10][C:9](=[O:12])[CH:8]=[CH:7]3)[CH2:19][CH2:18][NH:17][CH2:16][CH2:15]18-Aminocarbostyril (15.47 g, 96.6 mmols) and bis(β-bromoethyl)amine hydrobromide (33 g, 106 mmols) were suspended in DMF and the suspension was stirred at 70° to 80° C. for 10 hours. After adding 5.1 g of sodium carbonate the reaction mixture was stirred at the same temperature as above for 7 hours. After distilling off the solvent under reduced pressure, methanol was added to the residue to crystallize. The crude crystals thus obtained were recrystallized from methanol-ether to give 5.1 g of 8-(1-piperazinyl)carbostyril hydrobromide, m.p. above 300° C., colorless scales.