Military or belligerent occupation is hostile control by a ruling power over a sovereign territory that is not part of the ruling power's own sovereign territory. The controlled territory is called occupied territory, and the ruling power is called the occupant. During a military occupation, the occupier has certain responsibilities to uphold public order.
Hundreds of years ago, the old notion of "to the victor belong the spoils" was replaced with the new notion that sovereignty was not to be taken from a state by force. Military occupation, which is a loss of a sovereign's control of a territory, but not a loss of sovereignty, was thus considered temporary. Ideally, a peace treaty would soon return control to the ousted sovereign.