The academic term for this is monopoly on force. It means the military can use force in the city, such as shooting people, taking people captive, threatening people, etc. without receiving any punishment from others. Note that individual soldiers may get punished for not following the orders and rules of the military they are in but the military as a whole have a monopoly on force in the city.
Latest Answers