Br[CH2:2][C:3]1[N:8]=[C:7]([C:9]2[CH:14]=[CH:13][CH:12]=[CH:11][CH:10]=2)[N:6]=[C:5]([C:15]2[CH:20]=[CH:19][CH:18]=[C:17]([N+:21]([O-:23])=[O:22])[CH:16]=2)[C:4]=1[C:24]([O:26][CH3:27])=[O:25].[CH3:28][N:29]1[CH2:34][CH2:33][NH:32][CH2:31][CH2:30]1>C(O)(C)C>[CH3:28][N:29]1[CH2:34][CH2:33][N:32]([CH2:2][C:3]2[N:8]=[C:7]([C:9]3[CH:14]=[CH:13][CH:12]=[CH:11][CH:10]=3)[N:6]=[C:5]([C:15]3[CH:20]=[CH:19][CH:18]=[C:17]([N+:21]([O-:23])=[O:22])[CH:16]=3)[C:4]=2[C:24]([O:26][CH3:27])=[O:25])[CH2:31][CH2:30]1To a suspension of methyl 6-bromomethyl-4-(3-nitrophenyl)-2-phenyl-5-pyrimidinecarboxylate (1.5 g) in isopropyl alcohol (15 ml) was added N-methylpiperazine (0.88 g) at 70° C. The reaction mixture was stirred for 10 minutes at the same temperature. After evaporating the solvent, the residue was dissolved in a mixture of chloroform (50 ml) and water (50 ml). The organic layer was separated, dried over magnesium sulfate and evaporated in vacuo. The residue was subjected to column chromatography on alumina (100 g) eluting with chloroform. The fractions containing the object compound were combined and concentrated under reduced pressure. The residual crystal was recrystallized from a mixture of diethyl ether and ethanol to give methyl 6-(4-methylpiperazin-1-ylmethyl)-4-(3-nitrophenyl)-2-phenyl-5-pyrimidinecarboxylate (0.37 g).