No foreign troops hold your town. Keep a strong home garrison so any attacker who marches on you runs into a wall of defense points.
—
Foreign troops hold your town and take 10% of everything you produce. Train soldiers and launch a liberation to drive them out — you pay nothing to fight on your own ground.
Throw your home garrison at the occupier. Winning survivors stay in your town; the occupier pays nothing to defend.