military occupation
Refers to the control and administration of a territory by a foreign military force, often following a conflict or during a period of political instability.
The country was under military occupation for a long period.
After the military occupation ended, a new government was established.