New condensed derivatives of anpirtoline, in which the pyridine ring is replaced with quinoline, quinazoline, 7‐chloroquinoline, and 7‐chloroquinazoline nuclei, have been synthesized. Their receptor binding profiles (5‐HT1A, 5‐HT1B) and analgesic activity (hot plate, acetic acid induced writhing) have been studied. The analgesic activity of compounds 4e—4g, and 4l are at least comparable to that of clinically used drugs flupirtine and tramadol under the same conditions.