The island of Menorca was a British dependency for most of the 18th century as a result of the 1713 Treaty of Utrecht. This treaty—signed by the Kingdom of Great Britain and the Kingdom of Portugal as well as the Kingdom of Spain, to end the conflict caused by the War of the Spanish Succession—gave Gibraltar and Menorca to the Kingdom of Great Britain, Sardinia to Austria (both territories had been part of the Crown of Aragon for more than four centuries), and Sicily to the House of Savoy. In addition, Flanders and other European territories of the Spanish Crown were given to Austria. The island fell to French forces, under Armand de Vignerot du Plessis in June 1756 and was occupied by them for the duration of the Seven Years’ War.
The British re-occupied the island after the war but, with their military forces diverted away by the American War of Independence, it fell to a Franco-Spanish force after a seven-month siege (1781–82). Spain retained it under the Treaty of Paris in 1783. However, during the French Revolutionary Wars, when Spain became an ally of France, it came under French rule.
Menorca was finally returned to Spain by the Treaty of Amiens during the French Revolutionary Wars, following the last British occupation, which lasted from 1798 to 1802. The continued presence of British naval forces, however, meant that the Balearic Islands were never occupied by the French during the Napoleonic Wars.