If the an AI opponent declares war on you and is losing badly:
"Sorry about the whole "war" thing. I have limited AI abilities and don't really know why I did it in the first place"
"We should make a declaration of friendship because then I can beg you for your resources and gold while you can't do that to me without making me angry."