If I've had someone as a loyal ally all game, or if I've crushed an empire and suddenly feel sorry for them, or I've seen a nation ganged up on without mercy, I may gift them a city or even gold if I have it to spare.
Sometimes they make me regret helping them out though when they go and slag...