New N-(dimethylamino)ethyl derivatives of phthalazinones and pyridopyridazinones 7, 9 were synthesized and assayed as potential analgesic agents in the hot-plate, tail-flick, and writhing tests. Pharmacological assay demonstrated that eight (in ten) of the newly synthesized compounds showed antinociceptive activity. Especially, 2-[2-(dimethylamino)ethyl]-4-phenyl-2H-phthalazin-1-one 7a showed remarkably higher antinociceptive activity in all tests. This is connected with influence on supraspinal, spinal, and peripheral structures. The decreased sensitivity to the pain stimulus in the hot-plate was higher than that of metamizole.