Spain formally the Kingdom of Spain is a country in Southwestern Europe with some pockets of territory across the Strait of Gibraltar and the Atlantic Ocean. Spain is the only European country to have a physical border with an African country (Morocco).Its continental European territory is situated on the Iberian Peninsula.
Spain is the largest country in Southern Europe, the second-largest country in Western Europe and the European Union, and the fourth-largest country by area on the European continent. With a population exceeding 47.3 million, Spain is the sixth-most populous country in Europe, and the fourth-most populous country in the European Union.
Spain's capital and largest city is Madrid; other major urban areas include Barcelona, Valencia, Seville, Zaragoza, Malaga, Murcia, Palma, Las Palmas de Gran Canaria and Bilbao. Anatomically modern humans first arrived in the Iberian Peninsula around 42,000 years ago.
Spain hosts the world's third-largest number of UNESCO World Heritage Sites. It is a highly developed country and a high income country, with the world's fourteenth-largest economy by nominal GDP and the sixteenth-largest by PPP.
Spain is a member of the United Nations (UN), the European Union (EU), the Eurozone, the Council of Europe (CoE), the Organization of Ibero-American States (OEI), the Union for the Mediterranean, the North Atlantic Treaty Organization (NATO), the Organisation for Economic Co-operation and Development (OECD), Organization for Security and Co-operation in Europe (OSCE), the Schengen Area, the World Trade Organization (WTO) and many other international organisations.