199 countries 39,402 visa rules 72,668 airports 7,028 languages 235 holiday calendars 1,260 news stories Visa data verified 13 Oct 2026
Free Passport Photo Maker
Travel photo of Spain

Europe · neighbouring countries

Flag of SpainNeighboring Countries of Spain

Spain shares land borders with 5 countries: Portugal (1,224 km), France (646 km), Andorra (63 km), Morocco (8 km) and Gibraltar (1 km).

Check another country

5
Neighbouring countries (#35 of 236)
1,953 km
Total land borders
4,964 km
Coastline
505,370
Area in km²
  • Spain
  • Neighbouring countries
  • Neighbours of neighbours

Countries bordering Spain

NeighbourBorder lengthCapitalVisa for Spain citizens
Flag of PortugalPortugal
1,224 km
Lisbon Freedom of movement
Flag of FranceFrance
646 km
Paris Freedom of movement
Flag of AndorraAndorra
63 km
Andorra la Vella Visa-free
Flag of MoroccoMorocco
Ceuta
8 km
Rabat Visa-free
Flag of GibraltarGibraltar
1 km
Gibraltar —

Portugal accounts for 63% of Spain's 1,953 km of land borders. Lengths: CIA World Factbook (public domain).

Geography of Spain

Location

Southwestern Europe, bordering the Mediterranean Sea, North Atlantic Ocean, Bay of Biscay, and Pyrenees Mountains; southwest of France

Area

505,370 km² — almost five times the size of Kentucky; slightly more than twice the size of Oregon

Terrain

Large, flat to dissected plateau surrounded by rugged hills; Pyrenees Mountains in north

Climate

Temperate; clear, hot summers in interior, more moderate and cloudy along coast; cloudy, cold winters in interior, partly cloudy and cool along coast

Highest and lowest points

Highest: Pico de Teide (Tenerife) on Canary Islands 3,718 m. Lowest: Atlantic Ocean 0 m. Mean elevation: 660 m.

Natural resources

Coal, lignite, iron ore, copper, lead, zinc, uranium, tungsten, mercury, pyrites, magnesite, fluorspar, gypsum, sepiolite, kaolin, potash, hydropower, arable land

Natural hazards

Periodic droughts, occasional flooding volcanism: volcanic activity in the Canary Islands, located off Africa's northwest coast; Teide (3,715 m) has been deemed a Decade Volcano by the International Association of Volcanology and Chemistry of the Earth's Interior, worthy of study due to its explosive history and close proximity to human populations; La Palma (2,426 m) is the most active of the Canary Islands volcanoes; Lanzarote is the only other historically active volcano

Good to know

Strategic location along approaches to Strait of Gibraltar; Spain controls a number of territories in northern Morocco, including the enclaves of Ceuta and Melilla and the islands of Penon de Velez de la Gomera, Penon de Alhucemas, and Islas Chafarinas; Spain's Canary Islands are one of four North Atlantic archipelagos that make up Macaronesia; the others are the Azores (Portugal), Madeira (Portugal), and Cabo Verde

Frequently asked questions about the borders of Spain

How many countries border Spain?

Spain shares land borders with 5 countries: Portugal (1,224 km), France (646 km), Andorra (63 km), Morocco (8 km) and Gibraltar (1 km).

Which is the longest border of Spain?

The longest land border of Spain is with Portugal (1,224 km); the shortest is with Gibraltar (1 km).

Is Spain landlocked?

No. Spain has 4,964 km of coastline.

How long are the land borders of Spain?

The land borders of Spain total 1,953 km. By number of neighbours Spain ranks #35 among 236 countries and territories.

Do Spain citizens need a visa for neighbouring countries?

Spain citizens can visit 4 of 4 neighbouring countries visa-free: Portugal, France, Andorra and Morocco.

What is the highest point of Spain?

Pico de Teide (Tenerife) on Canary Islands 3,718 m. The lowest point is Atlantic Ocean 0 m.

Borders and geography: CIA World Factbook (public domain). Visa rules: TravelRequirements.info — Entry Requirements Dataset, AXG Sp. z o.o. (CC BY 4.0).