Mainland Spain and Portugal dominate a map of Iberia, but the shortest country lists leave out the places that explain where its edges lie. In the Pyrenees, rivers cross the borders in both directions; at the southern end, Gibraltar sits on Iberian land without being an independent country.
Most of the Iberian Peninsula is mainland Spain and Portugal. Andorra is usually included in the Pyrenees. Some physical definitions also include French Cerdagne, a small area of France whose water drains toward Spain. Gibraltar is on the peninsula, but it is a British Overseas Territory rather than another sovereign country.
How to use this article: Check the country and territory list, compare the two sides of the Pyrenees, then look at Gibraltar’s status and the islands that sit off the mainland.
Which countries are on the Iberian Peninsula?
Separate the mainland, the edge cases and the territory
Find the peninsula in southwestern Europe, between the Atlantic Ocean and the Mediterranean Sea. On the northeast, it joins the rest of Europe at the Pyrenees. Spain and Portugal occupy almost all of the land that projects south and west of those mountains, but a map that simply joins both countries’ national outlines misses the territory at the southern tip and the distinctions at the Pyrenean edge.

| Place | Political status | Place on the peninsula |
|---|---|---|
| Spain | Sovereign state | Mainland Spain covers most of the peninsula; its island groups and North African cities are off it. |
| Portugal | Sovereign state | Mainland Portugal forms the western side; the Azores and Madeira are separate Atlantic islands. |
| Andorra | Sovereign state | A Pyrenean country commonly included; its national boundary and the main drainage divide differ. |
| France | Sovereign state | A small part, notably French Cerdagne, appears on the Iberian side in some terrain-based treatments. |
| Gibraltar | British Overseas Territory under UK administration | Attached to the peninsula’s southern coast; Spain maintains its sovereignty claim. |
The Pyrenean edge: two valleys that cross the rule
Trace the Segre and the Garonne, not just the border
Start with two neighboring valleys whose rivers cross the border in opposite directions. On the French side of the international border, French Cerdagne is drained by the upper Segre. The river flows from France toward Spain, joins the Ebro and reaches the Mediterranean through the Ebro system. The French local authority’s basin account describes the drainage as oriented toward Spain. This is the clearest reason a terrain-based list may include a small area of France without including the whole country.
The reverse occurs farther west. Val d’Aran is in Spain, but the Garonne flows from the valley into France and reaches the Atlantic through the Gironde estuary. Not every part of Spain in the Pyrenees is therefore on the same side of the watershed. A label such as “Spanish Pyrenees” describes a country’s part of the mountains; it does not tell you which way the water runs.
Andorra makes the same point within one country. Its government basin maps show most of its territory in the Gran Valira system flowing toward the Segre, while the Pas de la Casa area drains toward France through the Ariège and Garonne. Andorra remains one sovereign state between Spain and France; the drainage divide does not draw its border.
Gibraltar: Iberian land, separate legal status
Locate the Rock without counting another country
Gibraltar sits on a small projection attached to the southern coast beside Spain, near the eastern entrance to the Strait of Gibraltar. Across the water is North Africa. The Rock’s location makes Gibraltar part of the physical peninsula, but it does not make it a sovereign Iberian country or put Great Britain itself on the peninsula.
The United Kingdom administers Gibraltar as a British Overseas Territory, and the United Nations lists it separately as a Non-Self-Governing Territory. Spain maintains its sovereignty claim. The United Kingdom’s statement on the agreement signed in July 2026 and the Spanish foreign ministry’s position both say the underlying sovereignty positions did not change. The map locates Gibraltar without settling that dispute or drawing a maritime claim.
Mainland Portugal and Spain versus their offshore territories
Keep the islands and the landmass distinct
The Spanish National Geographic Institute distinguishes peninsular Spain from the Balearic and Canary Islands and the cities of Ceuta and Melilla in North Africa. Likewise, the Portuguese government’s territorial guide separates mainland Portugal from the autonomous regions of the Azores and Madeira. They remain part of their respective countries even when a physical peninsula map leaves them outside the mainland shading.
A small map can make a short water gap look insignificant, especially around the Balearics. A simple check is to ask whether the spot is on the connected European landmass here, rather than whether it uses a Spanish or Portuguese flag.
Which map should you use for the northern edge?
A political map is right for seeing where France, Spain and Andorra meet. A relief map shows the mountain belt that joins Iberia to the rest of Europe. Add a watershed layer if the question is how a particular valley drains. Those layers need not agree, and none makes the whole of France an Iberian country.
At national-atlas scale, the Pyrenees are a useful regional divider. For Cerdagne, Aran or the corner of Andorra near Pas de la Casa, read the local terrain and the political line separately. Which valleys an atlas labels Iberian depends on the convention it states rather than the nationality or language of the people living there.
Frequently Asked Questions
Why is Llívia Spanish if France surrounds it?
Llívia is a Spanish municipality entirely surrounded by France, a result of historical border agreements. It lies within the Cerdagne valley, which is broader than the enclave. French Cerdagne and Llívia are not interchangeable names.
Is Andorra governed jointly by Spain and France?
No. Andorra is an independent country. Under Article 43 of its constitution, the bishop of Urgell and the president of France serve as co-princes in their personal capacities. That arrangement does not give Spain and France joint sovereignty.
Are the Tagus, Tajo and Tejo separate rivers?
No. The Tagus is Tajo in Spanish and Tejo in Portuguese. It rises in Spain, forms part of the border and reaches the Atlantic through the estuary by Lisbon.
What Did We Learn Today?
Mainland Spain and Portugal form the core of Iberia. Andorra and French Cerdagne show why the Pyrenean transition is not the national border, while Gibraltar shows why physical location is not the same as legal status. Spanish and Portuguese islands belong to their countries without belonging to the peninsula’s continuous land.
Sources & Data Notes
Spain’s National Geographic Institute and the Portuguese government describe mainland and offshore territories separately. The French Cerdagne basin authorities, the Conselh Generau d’Aran and Andorra’s water maps explain why drainage differs from the political boundary. The UN decolonization list and statements from the United Kingdom and Spain provide Gibraltar’s administrative status and the two governments’ positions. The map uses Natural Earth coastlines and NOAA ETOPO 2022 elevation, and the flow arrows show direction between named basins rather than a surveyed line. No maritime territory is assigned. The atlas distinguishes the principal country borders from Natural Earth’s dashed Olivença/Olivenza segment, which the Portuguese parliamentary record discusses between the Caia and Cuncos. The map does not adjudicate sovereignty.
Photo: Strait of Gibraltar from Tarifa by Marianonicolasgil1971, November 30, 2014, CC BY-SA 3.0 Spain (resized; image stays under this license). Map data: Natural Earth, NOAA ETOPO 2022.
