With an area of 505,990 km 2 (195,360 sq mi), Spain is the second largest country in Western Europe and the European Union, and the fourth largest country in Europe. By population, Spain is the sixth largest in Europe and the fifth in the European Union.