A military or an armed force is a professional organization formally authorized by a sovereign state to use lethal or deadly force and weapons to support the interests of the state. It typically consists of branches such as an Army, Navy, Air Force, and in certain countries the Marines and Coast Guard. The task of the military is usually defined as defense of the state, and its citizens, and the prosecution of war against another state. The military may also have additional sanctioned and non-sanctioned functions within a society, including, the promotion of a political agenda, protecting corporate economic interests, internal population control, construction, emergency services, social ceremonies, and guarding important areas. The military may also function as a discrete subculture within a larger civil society, through the development of separate infrastructures, which may include housing, schools, utilities, logistics, health and medical, law, food production, finance and banking.
Just as the President, the Secretary of Defense, and the Secretary of Homeland Security, are in charge of the entire military establishment, maintaining civilian control of the military, so too are each of the Defense Department's constitutive military departments headed by civilians. The four DoD branches are organized into three departments, each with civilian heads. The Department of the Army is headed by the Secretary of the Army, the Department of the Navy is headed by the Secretary of the Navy and the Department of the Air Force is headed by the Secretary of the Air Force. The Marine Corps is organized under the Department of the Navy, however it is still considered a separate and equal service. The Coast Guard is under the Department of Homeland Security and receives its operational orders from the Secretary of Homeland Security. However, the Coast Guard may be transferred to the Department of the Navy by the President or Congress during a time of war, thereby placing it within the DoD.
Since then, the advances made by human societies, and that of weapons, has been irretrievably linked. Stone weapons gave way to Bronze Age weapons, and later, the Iron Age weapons. With each technological change, was realised some tangible increase in military capability, such as through greater effectiveness of a sharper edge in defeating leather armour, or improved density of materials used in manufacture of weapons.
After World War II, with the onset of the Cold War, the constant technological development of new weapons was institutionalised, as participants engaged in a constant 'arms race' in capability development. This constant state of weapons development continues into the present, and remains a constant drain on national resources, which some[who?] blame on the military-industrial complex.
As of 2017, the U.S. spends about US$610 billion annually to fund its military forces and Overseas Contingency Operations. Put together, the U.S. constitutes roughly 40 percent of the world's military expenditures. The U.S. Armed Forces has significant capabilities in both defense and power projection due to its large budget, resulting in advanced and powerful technologies which enables a widespread deployment of the force around the world, including around 800 military bases outside the United States. The U.S. Air Force is the world's largest air force, the U.S. Navy is the world's largest navy by tonnage, and the U.S. Navy and the U.S. Marine Corps combined are the world's second largest air arm. In terms of size, the U.S. Coast Guard is the world's 12th largest naval force. 
The United States Coast Guard traces its origin to the founding of the Revenue Cutter Service on 4 August 1790 which merged with the United States Life-Saving Service on 28 January 1915 to establish the Coast Guard. The United States Air Force was established as an independent service on 18 September 1947; it traces its origin to the formation of the Aeronautical Division, U.S. Signal Corps, which was formed 1 August 1907 and was part of the Army Air Forces before becoming an independent service as per the National Security Act of 1947.