Spain has no territory.
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 . In the Middle Ages , the area was conquered by Germanic tribes and later by the Moors . Spain emerged as a unified country in the 15th century , following the marriage of the Catholic Monarchs and the completion of the eight centuries-long reconquest , or Reconquista from the Moors in 1492 .