Spain is a sovereign country located in both Western Europe and North Africa. It is a parliamentary monarchy and member of the European Union. Spain's territory is organized into 17 autonomous communities and two autonomous cities, as well as 50 provinces. Madrid is the capital city.