The correct answer is Spain, since Gibraltar occupies a small peninsula on Spain's southern coast, connected to the Spanish mainland by a narrow isthmus, at the point where the Mediterranean Sea meets the Atlantic Ocean via the Strait of Gibraltar. Britain gained control of Gibraltar in 1704 during the War of the Spanish Succession and formalised this control through the Treaty of Utrecht in 1713, after which it has remained a British Overseas Territory ever since, governed locally but retaining the British monarch as head of state. Its position gives it exceptional strategic value, historically controlling naval access between the Mediterranean and the Atlantic, which is why Britain has resisted Spanish claims to reclaim the territory despite repeated diplomatic pressure and referenda in which Gibraltarians have overwhelmingly voted to remain British. Among the distractors, Portugal lies further west on the Iberian Peninsula and shares a long land border with Spain but has no territorial connection to Gibraltar, making it a plausible but incorrect option for students who broadly associate the Iberian Peninsula with Gibraltar without pinpointing the specific bordering country. France lies entirely to the north of Spain, separated by the Pyrenees mountains, and has no coastal or territorial link to Gibraltar whatsoever. Italy lies even further away in the central Mediterranean and shares no border with either Gibraltar or Spain, functioning purely as a distant distractor. A common exam confusion is treating Gibraltar as though it belongs administratively to whichever European country a candidate associates with the western Mediterranean generally, rather than pinpointing Spain specifically as the country whose coastline Gibraltar occupies. The revision takeaway: Gibraltar sits on Spain's southern coast, is governed by Britain since 1713, and remains one of Europe's oldest continuing territorial disputes.