Spain, officially the Kingdom of Spain, is a country in Southern and Western Europe with territories in North Africa. Featuring the southernmost point of continental Europe, it is the largest country in Southern Europe and the fourth-most populous European Union (EU) member state. Spanning the majority of the Iberian Peninsula, its territory also includes the Canary Islands, in the Eastern Atlantic Ocean; the Balearic Islands, in the Western Mediterranean Sea; and the autonomous cities of Ceuta and Melilla, in mainland Africa. Peninsular Spain is bordered to the north by France, Andorra, and the Bay of Biscay; to the east and south by the Mediterranean Sea and Gibraltar; and to the west by Portugal and the Atlantic Ocean. Spain's capital and largest city is Madrid; other major urban areas include Barcelona, Valencia, Seville, Zaragoza, Málaga, Murcia, and Palma de Mallorca.
In early antiquity, the Iberian Peninsula was inhabited by Celts, Iberians, and other pre-Roman peoples. The Roman conquest of the Iberian peninsula created the province of Hispania, which became deeply Romanised and later Christianised. After the fall of the Western Roman Empire, the peninsula was conquered by tribes from Central Europe, among them the Visigoths, who established the Visigothic Kingdom centred on Toledo. In the early 8th century, most of the peninsula was conquered by the Umayyad Caliphate, with Al-Andalus centred on Córdoba. The northern Christian kingdoms of Iberia launched the so-called Reconquista, gradually repelling and ultimately expelling Islamic rule from the peninsula, culminating with the fall of the Nasrid Kingdom of Granada. The dynastic union of the Crown of Castile and the Crown of Aragon in 1479 under the Catholic Monarchs is often seen as the de facto unification of Spain as a nation state.