It's possible to trade cities to other civilizations, but I'm uncertain how cities received through a trade behave. Do they suffer any penalties compared to cities I built myself, or do they behave the same?
I once recieved 5 cities from an AI. The cities behaved as though I conquered them. I had the option to occupy/puppet/raze. There was so much unhappiness that I gave two of them back.