Synthesis of several substituted pyrrolizines 10a-f, 11a-f, 13a-c, pyrimidopyrrolizines 14a-c, 15a-c, and pyrrolizinopyrimidoisoindoles 12a-c was discussed. The starting compounds 6-amino-7-cyano-N-(4-(un)substitutedphenyl)-2,3-dihydro-1H-pyrrolizine-5-carboxamides 9a-c were reacted with different aldehydes, acid chlorides, and acid anhydrides to give the target compounds. The structures of the new compounds were characterized by spectral and elemental analyses. All compounds were tested for their anti-inflammatory activity using the carrageenan-induced rat paw oedema model and exhibited weak to good activities compared to ketorolac as the reference drug. Also, analgesic activity of selected compounds, which are the most active in the anti-inflammatory screening, was measured using the acetic acid-induced writhing model; revealing activities comparable to or higher than ketorolac. Ulcer indices for the most active compounds were calculated and some compounds showed no or minimal ulcerogenic effect compared to ketorolac.