My army was occupying an enemy city and after accepting their surrender my army was stuck in their territory. The main plaza and its districts are blocking the way into neutral territory. In the other direction there is another AI nation so can’t go that way. I have not researched naval transport yet so I can’t sail away.