Otaman, I'd say that's just great playing on your part!
Maybe it is the difficulty of taking cities that is the BIG issue with the AI. I mean, I have to sit there an pound, pound pound a city with siege... holding the line with supporting melee... it is very complex and I have to carefully plan the attack or I risk losing all of my troops.
But there is a math to it. To take a decently defended city, you probably need about an 8-1 unit advantage (if the units are of the same era). If I'm ahead by an era, I can do this with half. If I'm behind, I don't even want to try...
But there is a formula. 2-3 siege... 2-3 melee... 2-3 mounted or bowmen.
If you don't have enough... even by 1, then you risk losing all your units and their city heals to full health, and it was a complete waste of time.