International protocols restrict the use, or have even created international bans on weapons, notably weapons of mass destruction (WMD). International conventions define what constitutes a war crime, and provides for war crimes prosecution. Individual countries also have elaborate codes of military justice, an example being the United States' Uniform Code of Military Justice that can lead to court martial for military personnel found guilty of war crimes.
Militaries often function as societies within societies, by having their own military communities, economies, education, medicine, and other aspects of a functioning civilian society. Although a 'military' is not limited to nations in of itself as many private military companies (or PMC's) can be used or 'hired' by organisations and figures as security, escort, or other means of protection; where police, agencies, or militaries are absent or not trusted.
Either because of the cultural memory, national history, or the potentiality of a military threat, the militarist argument asserts that a civilian population is dependent upon, and thereby subservient to the needs and goals of its military for continued independence. Militarism is sometimes contrasted with the concepts of comprehensive national power, soft power and hard power.
One difficult matter in the relation between military and society is control and transparency. In some countries, limited information on military operations and budgeting is accessible for the public. However transparency in the military sector is crucial to fight corruption. This showed the Government Defence Anti-corruption Index Transparency International UK published in 2013.