Spain shares its borders with only one country, which is France, to the northeast. Additionally, to the southwest, it is separated from Morocco by the Strait of Gibraltar. However, when referring strictly to land borders, France is the direct neighbor of Spain.