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.
From the time of its inception, the U.S. Armed Forces played a decisive role in the history of the United States. A sense of national unity and identity was forged as a result of victory in the First Barbary War and the Second Barbary War. Even so, the founders of the United States were suspicious of a permanent military force. It played a critical role in the American Civil War, continuing to serve as the armed forces of the United States, although a number of its officers resigned to join the military of the Confederate States. The National Security Act of 1947, adopted following World War II and during the Cold War's onset, created the modern U.S. military framework. The Act established the National Military Establishment, headed by the Secretary of Defense; and created the Department of the Air Force and the National Security Council. It was amended in 1949, renaming the National Military Establishment the Department of Defense, and merged the cabinet-level Department of the Army, Department of the Navy, and Department of the Air Force, into the Department of Defense.
The profession of soldiering as part of a military 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 Ramses 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, 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 victory columns.
Under current Department of Defense regulation, the various components of the U.S. Armed Forces have a set order of seniority. Examples of the use of this system include the display of service flags, placement of Soldiers, Marines, Sailors, Airmen and Coast Guardsmen in formation, etc. When the Coast Guard shall operate as part of the Department of the Navy, United States Coast Guard Academy cadets, the United States Coast Guard and the Coast Guard Reserve shall take precedence after United States Naval Academy midshipmen; the United States Navy; and Navy Reserve, respectively.
The United States has the world's largest military budget. In the fiscal year 2016, $580.3 billion in funding were enacted for the DoD and for "Overseas Contingency Operations" in the War on Terrorism. Outside of direct DoD spending, the United States spends another $218 to $262 billion each year on other defense-related programs, such as Veterans Affairs, Homeland Security, nuclear weapons maintenance and DoD.