Spaniards, or Spanish people, are an ethnic group and nation indigenous to Spain. Genetically and ethnolinguistically, Spaniards belong to the broader Southern and Western European populations, exhibiting a high degree of continuity with other Indo-European-derived ethnic groups in the region. Spain is also home to a diverse array of national and regional identities, shaped by its complex history. These include various languages and dialects, many of which are direct descendants of Latin, the language imposed during Roman rule. Among them, Castilian is the most widely spoken and the only official language across the entire country.

Commonly spoken regional languages include, most notably, the sole surviving indigenous language of Iberia, Basque, as well as other Latin-descended Romance languages like Spanish itself, Catalan and Galician. Many populations outside Spain have ancestors who emigrated from Spain and share elements of Hispanic cultures. The most notable of these comprise Hispanic America.

The Roman Republic conquered Iberia during the 2nd and 1st centuries BC. Hispania, the name given to Iberia by the Romans as a province of the Empire, underwent a process of linguistic and cultural Romanization, and as such, the majority of local languages in Spain today, with the exception of Basque, evolved out of Vulgar Latin which was introduced by the ancient Romans. At the end of the Western Roman Empire, the Germanic tribal confederations migrated from Central Europe, invaded the Iberian Peninsula and established relatively independent realms in its western provinces, including the Suebi, Alans, and Vandals. Eventually, the Visigoths would forcibly integrate all remaining independent territories in the peninsula, including the Byzantine province of Spania, into the Visigothic Kingdom, which more or less unified politically, ecclesiastically, and legally all the former Roman provinces or successor kingdoms of what was then documented as Hispania.

In the early eighth century, the Visigothic Kingdom was conquered by the Umayyad Islamic Caliphate that arrived to the peninsula in the year 711. The Muslim rule in the Iberian Peninsula, termed al-Andalus, soon became autonomous from Baghdad. The handful of small Christian pockets in the north left out of Muslim rule, along the presence of the Carolingian Empire near the Pyrenean range, would eventually lead to the emergence of the Christian kingdoms of León, Castile, Aragon, Portugal, and Navarre. Along seven centuries, an intermittent southwards expansion of the latter kingdoms (known in historiography as the Reconquista) took place, culminating with the Christian seizure of the last Muslim polity (the Nasrid Kingdom of Granada) in 1492, the same year Christopher Columbus arrived in the New World. During the centuries after the Reconquista, the Christian kings of Spain persecuted and expelled ethnic and religious minorities such as Jews and Muslims through the Spanish Inquisition.

A process of political conglomeration among the Christian kingdoms also ensued, and the late 15th-century saw the dynastic union of Castile and Aragon under the Catholic Monarchs, generally considered the point of emergence of Spain as a unified country. The Conquest of Navarre occurred in 1512. There was also a period called Iberian Union, the dynastic union of the Kingdom of Portugal and the Spanish Crown; during which, both countries were ruled by the Spanish Habsburg kings between 1580 and 1640.

In the early modern period, Spain had one of the largest empires in history, which was also one of the first global empires, leaving a large cultural and linguistic legacy that includes over 570 million Hispanophones, making Spanish the world's second-most spoken native language, after Mandarin Chinese. During the Golden Age there were also many advancements in the arts, with the rise of renowned painters such as Diego Velázquez. The most famous Spanish literary work, Don Quixote, was also published during the Golden Age of the Spanish Empire.

The population of Spain has become more diverse due to immigration of the late 20th and early 21st centuries. From 2000 to 2010, Spain had among the highest per capita immigration rates in the world and the second-highest absolute net migration in the world (after the United States). The diverse regional and cultural populations mainly include the Castilians, Aragonese, Catalans, Andalusians, Valencians, Balearics, Canarians, Basques, and Galicians (among others).

History Early populations

The earliest modern humans inhabiting the region of Spain are believed to have been Paleolithic peoples, who may have arrived in the Iberian Peninsula as early as 35,000–40,000 years ago. The Iberians are believed to have arrived or emerged in the region as a culture between the 4th millennium BC and the 3rd millennium BC, settling initially along the Mediterranean coast.

Then Celts settled in Spain during the Iron Age. Some of those tribes in north-central Spain, who had cultural contact with the Iberians, are called Celtiberians. In addition, a group known as the Tartessians and later Turdetanians inhabited southwestern Spain. They are believed to have developed a separate culture influenced by Phoenicia. The seafaring Phoenicians, Greeks, and Carthaginians successively settled trading colonies along the Mediterranean coast over a period of several centuries. Interaction took place with Indigenous peoples. The Second Punic War between the Carthaginians and Romans was fought mainly in what is now Spain and Portugal.

The Roman Republic conquered Iberia during the 2nd and 1st centuries BC, and established a series of Latin-speaking provinces in the region. As a result of Roman colonization, the majority of local languages, with the exception of Basque, stem from the Vulgar Latin that was spoken in Hispania (Roman Iberia). A new group of Romance languages of the Iberian Peninsula including Spanish, which eventually became the main language in Spain evolved from Roman expansion. Hispania emerged as an important part of the Roman Empire and produced notable historical figures such as Trajan, Hadrian, Seneca, Martial, Theodosius, and Quintilian.

The Germanic Vandals and Suebi, with Iranian Alans under King Respendial, arrived in the peninsula in 409 AD. Part of the Vandals with the remaining Alans, now under Geiseric, removed to North Africa after a few conflicts with another Germanic tribe, the Visigoths. The latter were established in Toulouse and supported Roman campaigns against the Vandals and Alans in 415–19 AD.

The Visigoths became the dominant power in Iberia and reigned for three centuries. They were highly romanized in the eastern Empire and already Christians, so they became fully integrated into the late Iberian-Roman culture.

The Suebi were another Germanic tribe in the west of the peninsula; some sources said that they became established as federates of the Roman Empire in the old Northwestern Roman province of Gallaecia (roughly, present-day northern Portugal and Galicia). But they were largely independent and raided neighboring provinces to expand their political control over ever-larger portions of the southwest after the Vandals and Alans left. They created a totally independent Suebic Kingdom. In 447 AD they converted to Roman Catholicism under King Rechila.

After being checked and reduced in 456 AD by the Visigoths, the Suebic Kingdom survived to 585 AD. It was decimated as an independent political unit by the Visigoths, after having been involved in the internal affairs of their kingdom.

Middle Ages After two centuries of domination by the Visigothic Kingdom, the Iberian Peninsula was invaded by a Muslim force under Tariq Bin Ziyad in 711. This army consisted mainly of ethnic Berbers from the Ghomara tribe, who were reinforced by Arabs from Syria once the conquest was complete. Only a remote mountainous area in the far north retained independence, eventually developing as the Christian Kingdom of Asturias.

Muslim Iberia became part of the Umayyad Caliphate and would be known as Al-Andalus. The Berbers of Al Andalus revolted as early as 740 AD, halting Arab expansion across the Pyrenee Mountains into France. Upon the collapse of the Umayyad in Damascus, Spain was seized by Yusuf al Fihri. The exiled Umayyad Prince Abd al-Rahman I next seized power, establishing himself as Emir of Cordoba. Abd al Rahman III, his grandson, proclaimed a Caliphate in 929, marking the beginning of the Golden Age of Al Andalus. This policy was the effective power of Iberia and the Maghreb; it competed with the Shiite rulers of Tunis and frequently raided the small Christian kingdoms in the North.

The Caliphate of Córdoba effectively collapsed during a ruinous civil war between 1009 and 1013; it was not finally abolished until 1031, when Al-Andalus broke into a number of mostly independent mini-states and principalities called taifas. These were generally too weak to defend themselves against repeated raids and demands for tribute from the Christian states to the north and west, which were known to the Muslims as "the Galician nations". These had expanded from their initial strongholds in Galicia, Asturias, Cantabria, the Basque country, and the Carolingian Marca Hispanica to become the Kingdoms of Navarre, León, Portugal, Castile and Aragon, and the County of Barcelona. Eventually they began to conquer territory, and the Taifa kings asked for help from the Almoravids, Muslim Berber rulers of the Maghreb. But the Almoravids went on to conquer and annex all the Taifa kingdoms.

In 1086 the Almoravid ruler of Morocco, Yusuf ibn Tashfin, was invited by the Muslim princes in Iberia to defend them against Alfonso VI, King of Castile and León. In that year, Tashfin crossed the straits to Algeciras and inflicted defeat on the Christian army at the Battle of Sagrajas. By 1094, Yusuf ibn Tashfin had removed all Muslim princes in Iberia and had annexed their states, except for the one at Zaragoza. He also regained Valencia from the Christians. About this time a massive process of conversion to Islam took place, and Muslims comprised the majority of the population in Spain by the end of the 11th century.

The Almoravids were succeeded by the Almohads, another Berber dynasty, after the victory of Abu Yusuf Ya'qub al-Mansur over the Castilian Alfonso VIII at the Battle of Alarcos in 1195. In 1212 a coalition of Christian kings under the leadership of the Castilian Alfonso VIII defeated the Almohads at the Battle of Las Navas de Tolosa. But the Almohads continued to rule Al-Andalus for another decade, though with much reduced power and prestige. The civil wars following the death of Abu Ya'qub Yusuf II rapidly led to the re-establishment of taifas. The taifas, newly independent but weakened, were quickly conquered by the kingdoms of Portugal, Castile, and Aragon. After the fall of Murcia (1243) and the Algarve (1249), only the Emirate of Granada survived as a Muslim state, tributary of Castile until 1492.

In 1469 the marriage of Ferdinand of Aragon and Isabella of Castile signaled a joining of forces to attack and conquer the Emirate of Granada. The King and Queen convinced the Pope to declare their war a crusade. The Christians were successful and finally, in January 1492, after a long siege, the Moorish sultan Muhammad XI surrendered the fortress palace, the renowned Alhambra.

Spain conquered the Canary Islands between 1402 and 1496. Their indigenous Berber population, the Guanches, were gradually absorbed by intermarrying with Spanish settlers.