A military alliance is an international agreement concerning national security, when the contracting parties promise to support each other in case of a crisis that has not been identified in advance. Military alliances differ from coalitions, as coalitions are formed for a crisis that are already known.
Military alliances are related to collective security systems but can differ in nature. An early 1950s memorandum from the United States Department of State explained the difference by saying, that historically alliances "were designed to advance the respective nationalistic interests of the parties, and provided for joint military action if one of the parties in pursuit of such objectives became involved in war." While a collective security arrangement "is directed against no one; it is directed solely against aggression. It seeks not to influence any shifting 'balance of power' but to strengthen the 'balance of principle.'"
The obvious motivation in states engaging in military alliances is to protect themselves against threats from other countries. However states have also entered into alliances to improves ties with a particular nation or to manage conflict with a particular nation.
The nature of alliances, including their formation and cohesiveness (or lack thereof), is a subject of much academic study past and present, with the leading scholars generally considered to be Glenn H. Snyder and Stephen Walt.
In the European historical context, a military alliance can be viewed as a league between independent states, defined by treaty, for the purpose of combined action, defensive or offensive, or both. Alliances have often been directed to specific objects carefully defined in the treaties. Thus the Triple Alliance of 1668 between Great Britain, Sweden and the Netherlands, and the Grand Alliance of 1689 between the Emperor, Holland, England, Spain and Saxony, were both directed against the power of Louis XIV of France. The Quadruple or Grand Alliance of 1814, defined in the Treaty of Chaumont, between Great Britain, Austria, Russia and Prussia, had for its object the overthrow of Napoleon and his dynasty, and the confining of France within her traditional boundaries. The Triple Alliance of 1882 between Germany, Austria and Italy was ostensibly directed to the preservation of European peace against any possible aggressive action of France or Russia; and this led in turn, some ten years later, to the Dual Alliance between Russia and France, for mutual support in case of any hostile action of the other powers.
Occasionally, however, attempts have been made to give alliances a more general character. Thus the Holy Alliance of 26 September 1815 was an attempt, inspired by the religious idealism of the Emperor Alexander I of Russia, to find in the "sacred precepts of the Gospel" a common basis for a general league of the European governments, its object being, primarily, the preservation of peace. So, too, by Article VI of the Quadruple Treaty signed at Paris on 20 November 1815 – which renewed that of Chaumont and was again renewed, in 1818, at Aix-la-Chapelle – the scope of the Grand Alliance was extended to objects of common interest not specifically defined in the treaties. The article runs: "In order to consolidate the intimate tie which unites the four sovereigns for the happiness of the world, the High Contracting Powers have agreed to renew at fixed intervals, either under their own auspices or by their respective ministers, meetings consecrated to great common objects and to the examination of such measures as at each one of these epochs shall be judged most salutary for the peace and prosperity of the nations and the maintenance of the tranquillity of Europe."
It was this article of the treaty of the 20 November 1815, rather than the Holy Alliance, that formed the basis of the serious effort made by the great powers, between 1815 and 1822, to govern Europe in concert. In general it proved that an alliance, to be effective, must be clearly defined as to its objects, and that in the long run the treaty in which these objects are defined must – to quote Otto von Bismarck's somewhat cynical dictum – "be reinforced by the interests" of the parties concerned. Yet the "moral alliance" of Europe, as Count Karl Nesselrode called it, though it failed to secure the permanent harmony of the powers, was an effective instrument for peace during the years immediately following the downfall of Napoleon; and it set the precedent for those periodical meetings of the representatives of the powers, for the discussion and settlement of questions of international importance, which, though cumbrous and inefficient for constructive work, contributed much to the preservation of the general peace during much of the nineteenth century.
- Stefan Bergsmann "The Concept of Military Alliance", in "Small States and Alliances", 2001, pp 25-37, ISBN 978-3-7908-2492-6 (Print) ISBN 978-3-662-13000-1 (Online) 
- Volker Krause, J. David Singer "Minor Powers, Alliances, And Armed Conflict: Some Preliminary Patterns", in "Small States and Alliances", 2001, pp 15-23, ISBN 978-3-7908-2492-6 (Print) ISBN 978-3-662-13000-1 (Online) 
- Robert W. Tucker; David C. Hendrickson (1992). The Imperial Temptation: The New World Order and America's Purpose. Council on Foreign Relations. pp. 64–65.
- Weitsman, Dangerous Alliances, pp. 18–19.
- Daniel Byman (October 2006). "Remaking Alliances for the War on Terrorism" (PDF). The Journal of Strategy Studies 29 (5): 767–811.
- Liska, George. Alliances and the Third World. Baltimore: Johns Hopkins Press, 1968.
- Pressman, Jeremy. Warring Friends: Alliance Restraint in International Politics. Ithaca: Cornell University Press, 2008.
- Snyder, Glenn H. Alliance Politics. Ithaca: Cornell University Press, 1997.
- Walt, Stephen. The Origins of Alliances. Ithaca: Cornell University Press, 1987.
- Weitsman, Patricia A. Dangerous Alliances: Proponents of Peace, Weapons of War. Palo Alto: Stanford University Press, 2004.