Seven Years' War: British forces begin a siege of Havana, Cuba, and temporarily capture the city in the Battle of Havana.

The siege of Havana was a successful British siege against Spanish-ruled Havana that lasted from March to August 1762, as part of the Seven Years' War. After Spain abandoned its former policy of neutrality by signing the family compact with France, resulting in a British declaration of war on Spain in January 1762, the British government decided to mount an attack on the important Spanish fortress and naval base of Havana, with the intention of weakening the Spanish presence in the Caribbean and improving the security of its own North American colonies. A strong British naval force consisting of squadrons from Britain and the West Indies, and the military force of British and American troops it convoyed, were able to approach Havana from a direction that neither the Spanish governor nor the Admiral expected and were able to trap the Spanish fleet in the Havana harbour and land its troops with relatively little resistance.

The Spanish authorities decided on a strategy of delaying the British attack until the strength of the city's defences and the onset of seasonal rains inflicting tropical diseases would significantly reduce the size of the British force via disease, along with the start of hurricane season would force the British fleet to seek a safe anchorage. However, the city's main fortress, the Morro Castle was overlooked by a hill that the governor had neglected to fortify; the British installed batteries there and bombarded the fortress daily with heavy shelling. The fortress eventually fell after the officer in charge of Morro Castle, Luis Vicente de Velasco, was mortally wounded by a stray bullet. The capture of Morro Castle led to the eventual fall of the rest of the fortifications and the surrender of the city, the remaining garrison, and the naval forces present, before the hurricane season began.

The surrender of Havana led to substantial rewards for the British naval and military leaders and smaller amounts of prize money for other officers and men. The Spanish governor, Admiral and other military and civil office holders were court-martialled upon their return to Spain and punished for their failures to conduct a better defence and allowing the Spanish fleet present to fall intact into the hands of the British. Havana remained under British occupation until February 1763, when it was returned to Spain under the 1763 Treaty of Paris that formally ended the war.

The Seven Years' War (1756–1763) was a global conflict between Great Britain and France for global pre-eminence. In Europe, the conflict arose from issues left unresolved by the War of the Austrian Succession (1740–1748), with Prussia seeking greater dominance. Long-standing colonial rivalries pitting Britain against France and Spain in North America and the Caribbean islands were fought on a grand scale with consequential results. In Europe, the war broke out over territorial disputes between Prussia and Austria, which wanted to regain Silesia after it was captured by Prussia in the previous war. Britain, France and Spain fought both in Europe and overseas with land-based armies and naval forces, while Prussia sought territorial expansion in Europe and consolidation of its power.

In a realignment of traditional alliances, known as the Diplomatic Revolution of 1756, Prussia became part of a coalition led by Britain, which also included long-time Prussian competitor Hanover, at the time in personal union with Britain. At the same time, Austria ended centuries of conflict by allying with France, along with Saxony, Sweden and Russia. Spain aligned formally with France in 1762. Spain unsuccessfully attempted to invade Britain's ally Portugal, attacking with their forces facing British troops in Iberia. Smaller German states either joined the Seven Years' War or supplied mercenaries to the parties involved in the conflict.

Anglo-French conflict over their colonies in North America had begun in 1754 in what became known in the United States as the French and Indian War, a nine-year war that ended France's presence as a land power. It was "the most important event to occur in eighteenth-century North America" prior to the American Revolution. Spain entered the war in 1761, joining France in the Third Family Compact between the two Bourbon monarchies. The alliance with France was a disaster for Spain, with the loss to Britain of two major ports, Havana in the Caribbean and Manila in the Philippines, returned in the 1763 Treaty of Paris between France, Spain and Great Britain. In Europe the large-scale conflict that drew in most of the European powers was centered on the desire of Austria (long the political centre of the Holy Roman Empire of the German nation) to recover Silesia from Prussia. The Treaty of Hubertusburg ended the war between Saxony, Austria and Prussia, in 1763. Britain began its rise as the world's predominant colonial and naval power. For a time France's supremacy in Europe was halted until after the French Revolution and the emergence of Napoleon Bonaparte. Prussia confirmed its status as a great power, challenging Austria for dominance within the German states, thus altering the European balance of power.