Gibraltar is a British overseas territory located on the southern end of the Iberian Peninsula at the entrance of the Mediterranean. A peninsula with an area of 6.843 square kilometres (2.642 sq mi), it has a northern border with Spain. The Rock of Gibraltar is the major landmark of the region. At its foot is the densely populated city area, home to almost 30,000 Gibraltarians and other nationalities. An Anglo-Dutch force captured Gibraltar in 1704 during the War of the Spanish Succession. The territory was subsequently ceded to Britain by Spain under the Treaty of Utrecht in 1713.