- Portugal to the west
- France and the small independent country of Andorra to the northeast
- The United Kingdom (British Overseas Territory of Gibraltar) to the south