France is the largest and longest neighbor of Spain, sharing a land border of 623 km along the Pyrenees.
Portugal is the western neighbor of Spain, sharing a land border of 1,214 km and a close historical and cultural relationship.
Andorra is a small mountainous country that lies between Spain and France in the Pyrenees, with a land border of 63 km with Spain.
Gibraltar is a British overseas territory that is located at the southern tip of the Iberian Peninsula, with a land border of 1.2 km with Spain. It is a source of dispute between Spain and the UK.
Italy is a southern European country that shares a maritime border with Spain in the Mediterranean Sea, as well as cultural and linguistic ties.