At 505,992 km2 (195,365 sq mi), Spain is the world’s fifty-second largest country and Europe’s fourth largest country. It is some 47,000 km2 (18,000 sq mi) smaller than France. Mount Teide (Tenerife) is the highest mountain peak in Spain and is the third largest volcano in the world from its base. Spain is a transcontinental country, having territory in both Europe and Africa.
Spain lies between latitudes 27° and 44° N, and longitudes 19° W and 5° E.
On the west, Spain is bordered by Portugal; on the south, it is bordered by Gibraltar (a British overseas territory) and Morocco, through its exclaves in North Africa (Ceuta and Melilla, and the peninsula of de Vélez de la Gomera). On the northeast, along the Pyrenees mountain range, it is bordered by France and Andorra. Along the Pyrenees in Girona, a small exclave town called LlÃvia is surrounded by France.
Extending to 1,214 km (754 mi), the Portugal–Spain border is the longest uninterrupted border within the European Union.