Gibraltar ( , or other permutations; ) is a British Overseas Territory located on the southern end of the Iberian Peninsula. It has an area of and shares its northern border with Spain. The Rock of Gibraltar is the major landmark of the region. At its foot is a densely populated city area, home to over 30,000 Gibraltarians and other nationalities. 

An Anglo-Dutch force captured Gibraltar from Spain in 1704 during the War of the Spanish Succession on behalf of the Habsburg claim to the Spanish throne. The territory was subsequently ceded to Great Britain "in perpetuity" under the Treaty of Utrecht in 1713. During World War II it was an important base for the Royal Navy as it controlled the entrance and exit to the Mediterranean Sea, which is only eight miles (13 km) wide at this naval "choke point" and remains strategically important to this day with half the world's seaborne trade passing through the strait. Today Gibraltar's economy is based largely on tourism, online gambling, financial services, and cargo ship refuelling services. 

The sovereignty of Gibraltar is a major point of contention in Anglo-Spanish relations as Spain asserts a claim to the territory. Gibraltarians overwhelmingly rejected proposals for Spanish sovereignty in a 1967 referendum and again in 2002. Under the Gibraltar constitution of 2006, Gibraltar governs its own affairs, though some powers, such as defence and foreign relations, remain the responsibility of the British government.
What location is the article talking about?
Where is it situated?
What is its major landmark?"
What's the population there?
Who does it share its border with?
Is it a densely populated area?
When was it an important base?
for who?
why?
What is its economy famous for today?
Gibraltar
Gibraltar
the Iberian Peninsula
 the Iberian Peninsula
The Rock of Gibraltar
The Rock of Gibraltar 
30,000
30,000
Spain
Spain
Yes
 At its foot is a densely populated city area
During World War II
During World War II
the Royal Navy
 the Royal Navy
it controlled the entrance and exit to the Mediterranean Sea
 it controlled the entrance and exit to the Mediterranean Sea
tourism, online gambling, financial services, and cargo ship refuelling services
tourism, online gambling, financial services, and cargo ship refuelling services