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 can be classified to defense pacts, non-aggression pacts and ententes.
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.