Spain is a transcontinental country located in southwestern Europe and northern Africa, occupying about 84.6% of the Iberian Peninsula. Its territory includes a small exclave inside France called Llívia, the Balearic Islands in the Mediterranean Sea, the Canary Islands in the Atlantic Ocean, and several territories on or near the North African coast, including the autonomous cities of Ceuta and Melilla and the plazas de soberanía (Islas Chafarinas, Islas de Alhucemas, Isla Perejil, and Peñón de Vélez de la Gomera).
The Spanish mainland is bordered to the south and east almost entirely by the Mediterranean Sea (except for the small British territory of Gibraltar); to the north by France, Andorra, and the Bay of Biscay; and to the west by the Atlantic Ocean and Portugal. With a land area of 504,782 square kilometres (194,897 mi) in the Iberian Peninsula, Spain is the largest country in Southern Europe, the second largest country in Western Europe (behind France), and the fourth largest country in the European continent (behind Russia, Ukraine, and France). It has an average altitude of 650 m.
