I lost my capital to a naval invasion from the AI around the renaissance era. After some fighting I eventually took it back. It now counted as occupied.
After the war ended it was still occupied and it never recovered, it stayed like that having no growth until the end of the game.
There was no options about the city in the peace negotiation or in later diplomacy. Did I miss something about occupation mechanics or could this be a bug?