A military is an organization authorized by its country to use force, usually including use of weapons, in defending its country (or by attacking other countries) by combating actual or perceived threats. As an adjective the term "military" is also used to refer to any property or aspect of a military. Militaries often function as societies within societies, by having their own military communities, economies, education, medicine and other aspects of a functioning civilian society.
In the modern era, world wars and countless other major conflicts have changed the employment of the militaries beyond recognition to their ancient participants. Empires have come and gone; states have grown and declined. Enormous social changes have been wrought, and military power continues to dominate international relations. The role of the military today is as central to global societies as it ever was.
The first recorded use of military in English, spelled militarie, was in 1585. It comes from the Latin militaris (from Latin miles meaning "soldier") but is of uncertain etymology, one suggestion being derived from *mil-it- - going in a body or mass The word is now identified as denoting someone that is skilled in use of weapons, or engaged in military service or in warfare.
As an adjective military originally applied only to soldiers and soldiering, but it soon broadened to apply to land forces in general and anything to do with their profession. The names of both the Royal Military Academy (1741) and United States Military Academy (1802) reflect this. However, at about the time of Napoleonic Wars "military" begun to be applied to armed forces as a whole and in the 21st century expressions like "military service", "military intelligence" and "military history" reflect this broader meaning. As such, it now connotes any activity performed by the military personnel.
The profession of soldiering as part of a military group is older than recorded history itself. Some of the most enduring images of the classical antiquity portray the power and feats of its military leaders. The Battle of Kadesh in 1274 BC was one of the defining points of Pharaoh Ramesses II's reign and is celebrated in bas-relief on his monuments. A thousand years later the first emperor of unified China, Qin Shi Huang, was so determined to impress the gods with his military might that he was buried with an army of terracotta soldiers. The Romans were dedicated to military matters, leaving to posterity many treatises and writings as well as a large number of lavishly carved triumphal arches and columns.
Military history has a number of purposes. One main purpose is to learn from past accomplishments and mistakes so as to more effectively wage war in the future. Another is to create a sense of military tradition which is used to create cohesive military forces. Still another may be to learn to prevent wars more effectively. Human knowledge about the military is largely based on recorded and oral history of military conflicts, their participating armies and navies, and more recently air forces.