Land boundaries: total: 1,952.7 km
border countries (5): Andorra 63 km, France 646 km, Gibraltar 1.2 km, Portugal 1,224 km, Morocco (Ceuta) 8 km, Morocco (Melilla) 10.5 km
note: an additional 75-meter border segment exists between Morocco and the Spanish exclave of Penon de Velez de la Gomera
Definition: This entry contains the total length of all land boundaries and the individual lengths for each of the contiguous border countries. When available, official lengths published by national statistical agencies are used. Because surveying methods may differ, country border lengths reported by contiguous countries may differ.
Source: CIA World Factbook - This page was last updated on July 9, 2017