Spain is a country in Southwestern Europe with some pockets of territory across the Strait of Gibraltar and the Atlantic Ocean.

Spain has 1953 kilometers of borders, with 5 different countries.

The Spain-Portugal border, commonly known as La Raya, is 1292 kilometers long. It extends through the provinces of Pontevedra, Ourense, Zamora, Salamanca, Cáceres, Badajoz and Huelva in Spain, and the districts of Viana do Castelo, Braga, Vila Real, Bragança, Guarda, Castelo Branco, Portalegre, Évora, Beja, Faro in Portugal.

The Spain-France border is 656.3 km long. It is divided in two parts, since it is interrupted by Andorra. The first part extends through the provinces of Gipuzkoa, Navarre, Huesca, Lleida and Girona in Spain, and the departments of Pyrénées-Atlantiques, Hautes-Pyrénées, Haute-Garonne, Ariège, Pyrénées-Orientales in France.

The Spain-Andorra border is 63.7 km long. It extends through the province of Lérida in Spain, and the parishes of La Massana, Andorra La Vella, Sant Julià de Lòria, Escaldes-Engordany and Encamp.

The autonomous cities of Ceuta and Melilla, and the Peñón de Vélez de la Gomera make the border with Morocco, which is 19 km long.

The Spain–Gibraltar border is 1.2 km long and connects the British Overseas Territory of Gibraltar and the Spanish municipality of La Línea de la Concepción.

More Info: en.wikipedia.org