In 1713, after the war, Spain ceded the strategically important Gibraltar to Britain, but for a long time they demanded its return. In 2002, 99 percent of voters in Gibraltar rejected the idea of Britain sharing sovereignty with Spain.
Gibraltar’s status and how its border with Spain is monitored has been the subject of dispute since 2016, when Britain voted to leave the European Union. The peninsula was excluded from the exit agreement reached between Great Britain and the European Union.
Informal arrangements are underway as the two sides negotiate over Gibraltar, which overwhelmingly backed remaining in the EU in the Brexit referendum.