Spain is a place.
Spain . It is the only European country to have a border with an African country ( Morocco ) and its African territory accounts for nearly 5 % of its population , mostly in the Canary Islands but also in Ceuta and Melilla . With an area of 505990 km2 , Spain is the largest country in Southern Europe , the second largest country in Western Europe and the European Union , and the fourth largest country in the European continent . By population , Spain is the sixth largest in Europe and the fifth in the European Union . Spain 's capital and largest city is Madrid ; other major urban areas include Barcelona , Valencia , Seville , Bilbao and Málaga . It is a middle power and a major developed country with the world 's fourteenth largest economy by nominal GDP and sixteenth largest by purchasing power parity .