Its coasts are bathed by the Mediterranean Sea in the north, and the 'Atlantic Ocean across the tract to the west of the Strait of Gibraltar. The land borders are with the only Algeria, east and south-east, and the territory of Western Sahara to the south. There are also 4 enclave Spanish at the overlooking the Mediterranean: Ceuta, Melilla, Peñón de Vélez de la Gomera, Peñón de Alhucemas.
Even the islands Chafarinas on the coast of the Mediterranean, 45 km east of Melilla belong to Spain, as the Canary Islands off the coast of the southernmost strip of Atlantic coast of Morocco. Finally the island Perejil, an uninhabited reef in the Strait of Gibraltar, is still disputed between Morocco and Spain.