Spain

Spain, or the Kingdom of Spain, is a country in southwestern Europe with parts of tits territory in the Atlantic Ocean and across the Mediterranean Sea. The largest part of Spain is situated on the Iberian Peninsula; its territory also includes the Canary Islands in the Atlantic Ocean, the Balearic Islands in the Mediterranean Sea, the autonomous cities of Ceuta and Melilla, and several minor overseas territories also scattered along the Moroccan coast of the Alboran Sea. The country's mainland is bordered to the south by Gibraltar; to the south and east by the Mediterranean Sea; to the north by France, Andorra, and the Bay of Biscay; and to the west by Portugal and the Atlantic Ocean.

## History

The Renaissance scholar Antonio de Nebrija proposed that the word *Hispania* evolved from the Iberian word *Hispalis*, meaning "city of the western world".

Jesús Luis Cunchillos [es] argued that the root of the term *span* is the Phoenician word *spy*, meaning "to forge metals". Therefore, *i-spn-ya* would mean "the land where metals are forged". It may be a derivation of the Phoenician *I-Shpania*, meaning "island of rabbits", "land of rabbits" or "edge", a reference to Spain's location at the end of the Mediterranean; Roman coins struck in the region from the reign of Hadrian show a female figure with a rabbit at her feet, and Strabo called it the "land of the rabbits". The word in question (compare modern Hebrew *Shafan*) actually means "Hyrax", possibly due to Phoenicians confusing the two animals.

*Hispania* may derive from the poetic use of the term *Hesperia*, reflecting the Greek perception of Italy as a "western land" or "land of the setting sun" (*Hesperia*, *Ἑσπερία* in Greek) and Spain, being still further west, as *Hesperia ultima*.

There is the claim that "Hispania" derives from the Basque word *Ezpanna* meaning "edge" or "border", another reference to the fact that the Iberian Peninsula constitutes the southwest corner of the European continent.

Two 15th-century Spanish Jewish scholars, Don Isaac Abravanel and Solomon ibn Verga, gave an explanation now considered folkloric. Both men wrote in two different published works that the first Jews to reach Spain were brought by ship by Phiros who was confederate with the king of Babylon when he laid siege to Jerusalem. Phiros was a Grecian by birth, but who had been given a kingdom in Spain. Phiros became related by marriage to Espan, the nephew of king Heracles, who also ruled over a kingdom in Spain. Heracles later renounced his throne in preference for his native Greece, leaving his kingdom to his nephew, Espan, from whom the country of *España* (Spain) took its name. Based upon their testimonies, this eponym would have already been in use in Spain by c. 350 BC.

### Prehistory and pre-Roman peoples

Archaeological research at Atapuerca indicates the Iberian Peninsula was populated by hominids 1.2 million years ago. In Atapuerca fossils have been found of the earliest known hominins in Europe, the Homo antecessor. Modern humans first arrived in Iberia, from the north on foot, about 35,000 years ago.[*failed verification*] The best known artefacts of these prehistoric human settlements are the famous paintings in the Altamira cave of Cantabria in northern Iberia, which were created from 35,600 to 13,500 BCE by Cro-Magnon. Archaeological and genetic evidence suggests that the Iberian Peninsula acted as one of several major refugia from which northern Europe was repopulated following the end of the last ice age.

The largest groups inhabiting the Iberian Peninsula before the Roman conquest were the Iberians and the Celts. The Iberians inhabited the Mediterranean side of the peninsula, from the northeast to the southeast. The Celts inhabited much of the inner and Atlantic sides of the peninsula, from the northwest to the southwest. Basques occupied the western area of the Pyrenees mountain range and adjacent areas, the Phoenician-influenced Tartessians culture flourished in the southwest and the Lusitanians and Vettones occupied areas in the central west. Several cities were founded along the coast by Phoenicians, and trading outposts and colonies were established by Greeks in the East. Eventually, Phoenician-Carthaginians expanded inland towards the meseta; however, due to the bellicose inland tribes, the Carthaginians got settled in the coasts of the Iberian Peninsula.

### Roman Hispania and the Visigothic Kingdom

During the Second Punic War, roughly between 210 and 205 BCE the expanding Roman Republic captured Carthaginian trading colonies along the Mediterranean coast. Although it took the Romans nearly two centuries to complete the conquest of the Iberian Peninsula, they retained control of it for over six centuries. Roman rule was bound together by law, language, and the Roman road.

The cultures of the Celtic and Iberian populations were gradually Romanised (Latinised) at different rates depending on what part of Hispania they lived in, with local leaders being admitted into the Roman aristocratic class. Hispania served as a granary for the Roman market, and its harbours exported gold, wool, olive oil, and wine. Agricultural production increased with the introduction of irrigation projects, some of which remain in use. Emperors Hadrian, Trajan, Theodosius I, and the philosopher Seneca were born in Hispania. Christianity was introduced into Hispania in the 1st century CE and it became popular in the cities in the 2nd century CE. Most of Spain's present languages and religion, and the basis of its laws, originate from this period.

The weakening of the Western Roman Empire's jurisdiction in Hispania began in 409, when the Germanic Suebi and Vandals, together with the Sarmatian Alans entered the peninsula at the invitation of a Roman usurper. These tribes had crossed the Rhine in early 407 and ravaged Gaul. The Suebi established a kingdom in what is today modern Galicia and northern Portugal whereas the Vandals established themselves in southern Spain by 420 before crossing over to North Africa in 429 and taking Carthage in 439. As the western empire disintegrated, the social and economic base became greatly simplified: but even in modified form, the successor regimes maintained many of the institutions and laws of the late empire, including Christianity and assimilation to the evolving Roman culture.

The Byzantines established an occidental province, Spania, in the south, with the intention of reviving Roman rule throughout Iberia. Eventually, however, Hispania was reunited under Visigothic rule. These Visigoths, or Western Goths, after sacking Rome under the leadership of Alaric (410), turned towards the Iberian Peninsula, with Athaulf for their leader, and occupied the northeastern portion. Wallia extended his rule over most of the peninsula, keeping the Suebians shut up in Galicia. Theodoric I took part, with the Romans and Franks, in the Battle of the Catalaunian Plains, where Attila was routed. Euric (466), who put an end to the last remnants of Roman power in the peninsula, may be considered the first monarch of Spain, though the Suebians still maintained their independence in Galicia. Euric was also the first king to give written laws to the Visigoths. In the following reigns the Catholic kings of France assumed the role of protectors of the Hispano-Roman Catholics against the Arianism of the Visigoths, and in the wars which ensued Alaric II and Amalaric lost their lives.

Athanagild, having risen against King Agila, called in the Byzantines and, in payment for the succour they gave him, ceded to them the maritime places of the southeast (554). Liuvigild restored the political unity of the peninsula, subduing the Suebians, but the religious divisions of the country, reaching even the royal family, brought on a civil war. St. Hermengild, the king's son, putting himself at the head of the Catholics, was defeated and taken prisoner, and suffered martyrdom for rejecting communion with the Arians. Recared, son of Liuvigild and brother of St. Hermengild, added religious unity to the political unity achieved by his father, accepting the Catholic faith in the Third Council of Toledo (589). The religious unity established by this council was the basis of that fusion of Goths with Hispano-Romans which produced the Spanish nation. Sisebut and Suintila completed the expulsion of the Byzantines from Spain.

Intermarriage between Visigoths and Hispano-Romans was prohibited, though in practice it could not be entirely prevented and was eventually legalised by Liuvigild. The Spanish-Gothic scholars such as Braulio of Zaragoza and Isidore of Seville played an important role in keeping the classical Greek and Roman culture. Isidore was one of the most influential clerics and philosophers in the Middle Ages in Europe, and his theories were also vital to the conversion of the Visigothic Kingdom from an Arian domain to a Catholic one in the Councils of Toledo. Isidore created the first western encyclopedia which had a huge impact during the Middle Ages.

### Muslim era and *Reconquista*

From 711 to 718, as part of the expansion of the Umayyad Caliphate, nearly all of the Iberian Peninsula was conquered by Muslim armies from across the Strait of Gibraltar, resulting in the collapse of the Visigothic Kingdom. Only a small area in the mountainous north of the peninsula stood out of the territory seized during the initial invasion. The Kingdom of Asturias-León consolidated upon this pocket of territory. Other Christian kingdoms such as Navarre and Aragon in the mountainous north eventually surged upon the consolidation of counties of the Carolingian *Marca Hispanica*. For several centuries, the fluctuating frontier between the Muslim and Christian controlled areas of the peninsula was along the Ebro and Douro valleys.

Under Islamic law, Christians and Jews were given the subordinate status of dhimmi. This status permitted Christians and Jews to practice their religions as *People of the Book* but they were required to pay a special tax and had legal and social rights inferior to those of Muslims.

Conversion to Islam proceeded at an increasing pace. The *muladíes* (Muslims of ethnic Iberian origin) are believed to have formed the majority of the population of Al-Andalus by the end of the 10th century.

The Muslim society was itself diverse and beset by social tensions. The North-African Berber peoples, who had provided the bulk of the invading armies, clashed with the Arab leadership from the Middle East. Over time, large Moorish populations became established, especially in the Guadalquivir River valley, the coastal plain of Valencia, the Ebro River valley and (towards the end of this period) in the mountainous region of Granada.

A series of Viking incursions raided the coasts of the Iberian Peninsula in the 9th and 10th centuries.

Córdoba, the capital of the caliphate since Abd-ar-Rahman III, was the largest, richest and most sophisticated city in western Europe. Mediterranean trade and cultural exchange flourished. Muslims imported a rich intellectual tradition from the Middle East and North Africa. Some important philosophers at the time were Averroes, Ibn Arabi and Maimonides. The Romanised cultures of the Iberian Peninsula interacted with Muslim and Jewish cultures in complex ways, giving the region a distinctive culture. Outside the cities, where the vast majority lived, the land ownership system from Roman times remained largely intact as Muslim leaders rarely dispossessed landowners and the introduction of new crops and techniques led to an expansion of agriculture introducing new produces which originally came from Asia or the former territories of the Roman Empire.

In the 11th century, the Caliphate of Córdoba collapsed, fracturing into a series of petty kingdoms (*Taifas*), often subject to the payment of a form of protection money (*Parias*) to the Northern Christian kingdoms, which otherwise undertook a southward territorial expansion. The capture of the strategic city of Toledo in 1085 marked a significant shift in the balance of power in favour of the Christian kingdoms.[*citation needed*] The arrival from North Africa of the Islamic ruling sects of the Almoravids and the Almohads achieved temporary unity upon the Muslim-ruled territory, with a stricter, less tolerant application of Islam, and partially reversed some Christian territorial gains.

The Kingdom of León was the strongest Christian kingdom for centuries. In 1188 the first modern parliamentary session[*clarification needed*] in Europe was held in León (Cortes of León). The Kingdom of Castile, formed from Leonese territory, was its successor as strongest kingdom. The kings and the nobility fought for power and influence in this period. The example of the Roman emperors influenced the political objective of the Crown, while the nobles benefited from feudalism.

Muslim strongholds in the Guadalquivir Valley such as Córdoba (1236) and Seville (1248) fell to Castile in the 13th century. The County of Barcelona and the Kingdom of Aragon entered in a dynastic union and gained territory and power in the Mediterranean. In 1229 Majorca was conquered, so was Valencia in 1238. In the 13th and 14th centuries, the North-African Marinids established some enclaves around the Strait of Gibraltar.

From the mid 13th century, literature and philosophy started to flourish again in the Christian peninsular kingdoms, based on Roman and Gothic traditions. An important philosopher from this time is Ramon Llull. Abraham Cresques was a prominent Jewish cartographer. Roman law and its institutions were the model for the legislators. The king Alfonso X of Castile focused on strengthening this Roman and Gothic past, and also on linking the Iberian Christian kingdoms with the rest of medieval European Christendom. Alfonso worked for being elected emperor of the Holy Roman Empire and published the Siete Partidas code. The Toledo School of Translators is the name that commonly describes the group of scholars who worked together in the city of Toledo during the 12th and 13th centuries, to translate many of the philosophical and scientific works from Classical Arabic, Ancient Greek, and Ancient Hebrew.

The 13th century also witnessed the Crown of Aragon, centred in Spain's north east, expand its reach across islands in the Mediterranean, to Sicily and Naples. Around this time the universities of Palencia (1212/1263) and Salamanca (1218/1254) were established. The Black Death of 1348 and 1349 devastated Spain.

The Catalans and Aragonese offered themselves to the Byzantine Emperor Andronicus II Palaeologus to fight the Turks. Having conquered these, they turned their arms against the Byzantines, who treacherously slew their leaders; but for this treachery, the Spaniards, under Bernard of Rocafort and Berenguer of Entenca, exacted the terrible penalty celebrated in history as "The Catalan Vengeance" and seized the Frankish Duchy of Athens (1311). The royal line of Aragon became extinct with Martin the Humane, and the Compromise of Caspe gave the Crown to the House of Trastámara, already reigning in Castile.

As in the rest of Europe during the Late Middle Ages, antisemitism greatly increased during the 14th century in the Christian kingdoms. (A key event in that regard was the Black Death, as Jews were accused of poisoning the waters.) There were mass killings in Aragon in the mid-14th century, and 12,000 Jews were killed in Toledo. In 1391, Christian mobs went from town to town throughout Castile and Aragon, killing an estimated 50,000 Jews.[*excessive citations*] Women and children were sold as slaves to Muslims, and many synagogues were converted into churches. According to Hasdai Crescas, about 70 Jewish communities were destroyed.

This period saw a contrast in landowning characteristics between the western and north-western territories in Andalusia, where the nobility and the religious orders succeeded into the creation of large *latifundia* entitled to them, whereas in the Kingdom of Granada (eastern Andalusia), a Crown-auspiciated distribution of the land to medium and small farmers took place.

Upon the conclusion of the Granada War, the Nasrid Sultanate of Granada (the remaining Muslim-ruled polity in the Iberian Peninsula after 1246) capitulated in 1492 to the military strength of the Catholic Monarchs, and it was integrated from then on in the Crown of Castile.

### Spanish Empire

In 1469, the crowns of the Christian kingdoms of Castile and Aragon were united by the marriage of their monarchs, Isabella I and Ferdinand II, respectively. 1478 commenced the completion of the conquest of the Canary Islands. In 1492, Jews were forced to choose between conversion to Catholicism or facing expulsion. As a result, as many as 200,000 Jews were expelled from Castile and Aragon. This was followed by expulsions in 1493 in Aragonese Sicily and Portugal in 1497. The Treaty of Granada guaranteed religious tolerance towards Muslims, for a few years before Islam was outlawed in 1502 in Castile and 1527 in Aragon, leading the remaining Muslim population to become nominally Christian *Moriscos*. About four decades after the War of the Alpujarras (1568–1571), a significant proportion of the *moriscos* were expelled, settling primarily in North Africa. From 1609 to 1614, over 300,000 Moriscos were sent on ships to North Africa and other locations, and, of this figure, around 50,000 died resisting the expulsion, and 60,000 died on the journey.

The year 1492 also marked the arrival of Christopher Columbus in the New World, during a voyage funded by Isabella. Columbus's first voyage crossed the Atlantic and reached the Caribbean Islands, beginning the European exploration and conquest of the Americas, although Columbus remained convinced that he had reached the Orient. Large numbers of indigenous Americans died in battle against the Spaniards during the conquest, while others died from various other causes. Some scholars consider the initial period of the Spanish conquest— from Columbus's first landing in the Bahamas until the middle of the sixteenth century—as marking the most egregious case of genocide in the history of mankind. The death toll may have reached some 70 million indigenous people (out of 80 million) in this period, as diseases such as smallpox, measles, influenza, and typhus, brought to the Americas by the conquest, decimated the pre-Columbian population.

The Spanish colonisation of the Americas started with the colonisation of the Caribbean. It was followed by the conquest of powerful pre-Columbian polities in Central Mexico and the Pacific Coast of South America. Miscegenation was the rule between the native and the Spanish cultures and people. An expedition sponsored by the Spanish crown completed the first voyage around the world in human history, the Magellan-Elcano circumnavigation. The tornaviaje or return route from the Philippines to Mexico made possible the Manila galleon trading route. The Spanish encountered Islam in Southeast Asia and in order to incorporate the Philippines, Spanish expeditions organised from newly Christianised Mexico had invaded the Philippine territories of the Sultanate of Brunei. The Spanish considered the war with the Muslims of Brunei and the Philippines, a repeat of the *Reconquista*.

A centralisation of royal power ensued in the Early Modern Period at the expense of local nobility, and the word *España*, whose root is the ancient name *Hispania*, began to be commonly used to designate the whole of the two kingdoms.[*failed verification*][*dubious – discuss*] With their wide-ranging political, legal, religious and military reforms, the Hispanic Monarchy emerged as a world power.

The unification of the crowns of Aragon and Castile by the marriage of their sovereigns laid the basis for modern Spain and the Spanish Empire, although each kingdom of Spain remained a separate country socially, politically, legally, and in currency and language.

Two big revolts broke out during the early reign of the Habsburg emperor, Charles V: the Revolt of the Comuneros in the Crown of Castile and Revolt of the Brotherhoods in the Crown of Aragon.

Habsburg Spain was one of the leading world powers throughout the 16th century and most of the 17th century, a position reinforced by trade and wealth from colonial possessions and became the world's leading maritime power. It reached its apogee during the reigns of the first two Spanish Habsburgs—Charles V/I (1516–1556) and Philip II (1556–1598). This period saw the Italian Wars, the Schmalkaldic War, the Dutch Revolt, the War of the Portuguese Succession, clashes with the Ottomans, intervention in the French Wars of Religion and the Anglo-Spanish War.

Through exploration and conquest or royal marriage alliances and inheritance, the Spanish Empire expanded across vast areas in the Americas, the Indo-Pacific, Africa as well as the European continent (including holdings in the Italian Peninsula, the Low Countries and the Franche-Comté). The first circumnavigation of the world was carried out in 1519–1521. The so-called Age of Discovery featured explorations by sea and by land, the opening-up of new trade routes across oceans, conquests and the beginnings of European colonialism. Precious metals, spices, luxuries, and previously unknown plants brought to the metropole played a leading part in transforming the European understanding of the globe. The cultural efflorescence witnessed during this period is now referred to as the Spanish Golden Age. The expansion of the empire caused immense upheaval in the Americas as the collapse of societies and empires and new diseases from Europe devastated American indigenous populations. The rise of humanism, the Counter-Reformation and new geographical discoveries and conquests raised issues that were addressed by the intellectual movement now known as the School of Salamanca, which developed the first modern theories of what are now known as international law and human rights. Juan Luis Vives was another prominent humanist during this period.

Spain's 16th-century maritime supremacy was demonstrated by the victory over the Ottomans at Lepanto in 1571, and then after the setback of the Spanish Armada in 1588, in a series of victories against England in the Anglo-Spanish War of 1585–1604. However, during the middle decades of the 17th century Spain's maritime power went into a long decline with mounting defeats against the United Provinces and then England; that by the 1660s it was struggling grimly to defend its overseas possessions from pirates and privateers.

The Protestant Reformation dragged the kingdom ever more deeply into the mire of religiously charged wars. The result was a country forced into ever-expanding military efforts across Europe and in the Mediterranean. By the middle decades of a war- and plague-ridden 17th-century Europe, the Spanish Habsburgs had enmeshed the country in continent-wide religious-political conflicts. These conflicts drained it of resources and undermined the economy generally. Spain managed to hold on to most of the scattered Habsburg empire, and help the imperial forces of the Holy Roman Empire reverse a large part of the advances made by Protestant forces, but it was finally forced to recognise the separation of Portugal and the United Provinces, and eventually suffered some serious military reverses to France in the latter stages of the immensely destructive, Europe-wide Thirty Years' War. In the latter half of the 17th century, Spain went into a gradual decline, during which it surrendered several small territories to France and England; however, it maintained and enlarged its vast overseas empire, which remained intact until the beginning of the 19th century.

The decline culminated in a controversy over succession to the throne which consumed the first years of the 18th century. The War of the Spanish Succession was a wide-ranging international conflict combined with a civil war, and was to cost the kingdom its European possessions and its position as one of the leading powers on the Continent. During this war, a new dynasty originating in France, the Bourbons, was installed. Long united only by the Crown, a true Spanish state was established when the first Bourbon king, Philip V, united the crowns of Castile and Aragon into a single state, abolishing many of the old regional privileges and laws.

The 18th century saw a gradual recovery and an increase in prosperity through much of the empire. The predominant economic policy was an interventionist one, and the State also pursued policies aiming towards infrastructure development as well as the abolition of internal customs and the reduction of export tariffs. Projects of agricultural colonisation with new settlements took place in the south of Mainland Spain. Enlightenment ideas began to gain ground among some of the kingdom's elite and monarchy.

### Liberalism and nation state

In 1793, Spain went to war against the revolutionary new French Republic as a member of the first Coalition. The subsequent War of the Pyrenees polarised the country in a reaction against the gallicised elites and following defeat in the field, peace was made with France in 1795 at the Peace of Basel in which Spain lost control over two-thirds of the island of Hispaniola. In 1807, a secret treaty between Napoleon and the unpopular prime minister led to a new declaration of war against Britain and Portugal. Napoleon's troops entered the country to invade Portugal but instead occupied Spain's major fortresses. The Spanish king abdicated in favour of Napoleon's brother, Joseph Bonaparte, who ruled as puppet monarch.

The 2 May 1808 revolt was one of many uprisings across the country against the French occupation. These revolts marked the beginning of a devastating war of independence against the Napoleonic regime.

Further military action by Spanish armies, guerrilla warfare and an Anglo-Portuguese allied army, combined with Napoleon's failure on the Russian front, led to the retreat of French imperial armies from the Iberian Peninsula in 1814, and the return of King Ferdinand VII.

During the war, in 1810, a revolutionary body, the Cortes of Cádiz, was assembled to co-ordinate the effort against the Bonapartist regime and to prepare a constitution. It met as one body, and its members represented the entire Spanish empire. In 1812, a constitution for universal representation under a constitutional monarchy was declared, but after the fall of the Bonapartist regime, Ferdinand VII dismissed the Cortes Generales and was determined to rule as an absolute monarch.

The French occupation of Mainland Spain created an opportunity for overseas *criollo* elites who resented the privilege towards Peninsular elites and demanded retroversion of the sovereignty to the people. Starting in 1809 the American colonies began a series of revolutions and declared independence, leading to the Spanish American wars of independence that put an end to the metropole's grip over the Spanish Main. Attempts to re-assert control proved futile with opposition not only in the colonies but also in the Iberian peninsula and army revolts followed, led by liberal officers. By the end of 1826, the only American colonies Spain held were Cuba and Puerto Rico.

The Napoleonic War left Spain economically ruined, deeply divided and politically unstable. In the 1830s and 1840s, Carlism (a reactionary legitimist movement supportive of the branch issued from Carlos María Isidro of Bourbon, younger brother of Ferdinand VII), fought against the *cristinos* or *isabelinos* (supportive of Queen Isabella II, daughter of Ferdinand VII) in the Carlist Wars. *Isabelline* forces prevailed, but the conflict between *progressives* and *moderates* ended in a weak early constitutional period. After the Glorious Revolution of 1868 and the short-lived First Spanish Republic, the latter yielded to a stable monarchic period, the Restoration, a rigid bipartisan regime fuelled up by the *turnismo* (the prearranged rotation of government control between liberals and conservatives) and the form of political representation at the countryside (based on clientelism) known as *caciquismo* [es].

In the late 19th century nationalist movements arose in the Philippines and Cuba. In 1895 and 1896 the Cuban War of Independence and the Philippine Revolution broke out and eventually the United States became involved. The Spanish–American War was fought in the spring of 1898 and resulted in Spain losing the last of its once vast colonial empire outside of North Africa. *El Desastre* (the Disaster), as the war became known in Spain, gave added impetus to the Generation of '98 who were analyzing the country.

Although the period around the turn of the century was one of increasing prosperity, the 20th century brought little social peace; Spain played a minor part in the scramble for Africa, with the colonisation of Western Sahara, Spanish Morocco and Equatorial Guinea. It remained neutral during World War I. The heavy losses suffered during the Rif War in Morocco brought discredit to the government and undermined the monarchy.

Industrialisation, the development of railways and incipient capitalism developed in several areas of the country, particularly in Barcelona, as well as Labour movement and socialist and anarchist ideas. The 1888 Barcelona Universal Exposition and the 1870 Barcelona Labour Congress are good examples of this. In 1879, the Spanish Socialist Workers' Party was founded. A trade union linked to this party, Unión General de Trabajadores, was founded in 1888. In the anarcho-sindicalist trend of the labour movement in Spain, Confederación Nacional del Trabajo was founded in 1910 and Federación Anarquista Ibérica in 1927.

Catalanism and Vasquism, alongside other nationalisms and regionalisms in Spain, arose in that period, being the Basque Nationalist Party formed in 1895 and Regionalist League of Catalonia in 1901.

Political corruption and repression weakened the democratic system of the constitutional monarchy of a two-parties system. The Tragic Week events and repression examples the social instability of the time.

The La Canadiense strike in 1919 led to the first law limiting the working day to eight hours.

After a period of dictatorship during the governments of Generals Miguel Primo de Rivera and Dámaso Berenguer and Admiral Aznar-Cabañas (1923–1931), the first elections since 1923, largely understood as a plebiscite on Monarchy, took place: the 12 April 1931 municipal elections. These gave a resounding victory to the Republican-Socialist candidacies in large cities and provincial capitals, with a majority of monarchist councilors in rural areas. The king left the country and the proclamation of the Republic on 14 April ensued, with the formation of a provisional government.

A constitution for the country was passed in October 1931 following the June 1931 Constituent general election, and a series of cabinets presided by Manuel Azaña supported by republican parties and the PSOE followed. In the election held in 1933 the right triumphed and in 1936, the left. During the Second Republic there was a great political and social upheaval, marked by a sharp radicalization of the left and the right. The violent acts during this period included the burning of churches, the 1932 failed coup d'état led by José Sanjurjo, the Revolution of 1934 and numerous attacks against rival political leaders. On the other hand, it is also during the Second Republic when important reforms to modernize the country were initiated: a democratic constitution, agrarian reform, restructuring of the army, political decentralization and women's right to vote.

### Civil War and Francoist dictatorship

The Spanish Civil War broke out in 1936: on 17 and 18 July, part of the military carried out a coup d'état that triumphed in only part of the country. The situation led to a civil war, in which the territory was divided into two zones: one under the authority of the Republican government, that counted on outside support from the Soviet Union and Mexico (and from International Brigades), and the other controlled by the putschists (the Nationalist or rebel faction), most critically supported by Nazi Germany and Fascist Italy. The Republic was not supported by the Western powers due to the British-led policy of non-intervention. General Francisco Franco was sworn in as the supreme leader of the rebels on 1 October 1936. An uneasy relationship between the Republican government and the grassroots anarchists who had initiated a partial Social revolution also ensued.

The civil war was viciously fought and there were many atrocities committed by all sides. The war claimed the lives of over 500,000 people and caused the flight of up to a half-million citizens from the country. On 1 April 1939, five months before the beginning of World War II, the rebel side led by Franco emerged victorious, imposing a dictatorship over the whole country.

The regime remained chiefly "neutral" from a nominal standpoint in the Second World War (it briefly switched its position to "non-belligerent"), although it was sympathetic to the Axis and provided the Nazi Wehrmacht with Spanish volunteers in the Eastern Front. The only legal party under Franco's dictatorship was the Falange Española Tradicionalista y de las JONS (FET y de las JONS), formed in 1937 upon the merging of the Fascist Falange Española de las JONS and the Carlist traditionalists and to which the rest of right-wing groups supporting the rebels also added. The name of "Movimiento Nacional", sometimes understood as a wider structure than the FET y de las JONS proper, largely imposed over the later's name in official documents along the 1950s.

After World War II Spain was politically and economically isolated, and was kept out of the United Nations. This changed in 1955, during the Cold War period, when it became strategically important for the US to establish a military presence on the Iberian Peninsula as a counter to any possible move by the Soviet Union into the Mediterranean basin. In the 1960s, Spain registered an unprecedented rate of economic growth which was propelled by industrialisation, a mass internal migration from rural areas to Madrid, Barcelona and the Basque Country and the creation of a mass tourism industry. Franco's rule was also characterised by authoritarianism, promotion of a unitary national identity, National Catholicism, and discriminatory language policies.

### Restoration of democracy

In 1962, a group of politicians involved in the opposition to Franco's regime inside the country and in exile met in the congress of the European Movement in Munich, where they made a resolution in favour of democracy.

With Franco's death in November 1975, Juan Carlos succeeded to the position of King of Spain and head of state in accordance with the Francoist law. With the approval of the new Spanish Constitution of 1978 and the restoration of democracy, the State devolved much authority to the regions and created an internal organisation based on autonomous communities. The Spanish 1977 Amnesty Law let people of Franco's regime continue inside institutions without consequences, even perpetrators of some crimes during transition to democracy like the Massacre of 3 March 1976 in Vitoria or 1977 Massacre of Atocha.

In the Basque Country, moderate Basque nationalism coexisted with a radical nationalist movement led by the armed organisation ETA until the latter's dissolution in May 2018. The group was formed in 1959 during Franco's rule but had continued to wage its violent campaign even after the restoration of democracy and the return of a large measure of regional autonomy.

On 23 February 1981, rebel elements among the security forces seized the Cortes in an attempt to impose a military-backed government. King Juan Carlos took personal command of the military and successfully ordered the coup plotters, via national television, to surrender.

During the 1980s the democratic restoration made possible a growing open society. New cultural movements based on freedom appeared, like La Movida Madrileña. In May 1982 Spain joined NATO, followed by a referendum after a strong social opposition. That year the Spanish Socialist Workers Party (PSOE) came to power, the first left-wing government in 43 years. In 1986 Spain joined the European Economic Community, which later became the European Union. The PSOE was replaced in government by the Partido Popular (PP) in 1996 after scandals around participation of the government of Felipe González in the Dirty war against ETA; at that point the PSOE had served almost 14 consecutive years in office.

On 1 January 2002, Spain fully adopted the euro, and Spain experienced strong economic growth, well above the EU average during the early 2000s. However, well-publicised concerns issued by many economic commentators at the height of the boom warned that extraordinary property prices and a high foreign trade deficit were likely to lead to a painful economic collapse.

In 2002, the Prestige oil spill occurred with big ecological consequences along Spain's Atlantic coastline. In 2003 José María Aznar supported US president George W. Bush in the Iraq War, and a strong movement against war rose in Spanish society. In March 2004 a local Islamist terrorist group inspired by Al-Qaeda carried out the largest terrorist attack in Spanish history when they killed 191 people and wounded more than 1,800 others by bombing commuter trains in Madrid. Though initial suspicions focused on the Basque terrorist group ETA, evidence of Islamist involvement soon emerged. Because of the proximity of the 2004 Spanish general election, the issue of responsibility quickly became a political controversy, with the main competing parties PP and PSOE exchanging accusations over the handling of the incident. The elections PSOE won the election, led by José Luis Rodríguez Zapatero.

In the early 2000s, the proportion of Spain's foreign-born population increased rapidly during its economic boom but then declined due to the financial crisis. In 2005, the Spanish government legalized same-sex marriage, becoming the third country worldwide to do so. Decentralisation was supported with much resistance of Constitutional Court and conservative opposition, so did gender politics like quotas or the law against gender violence. Government talks with ETA happened, and the group announced its permanent cease of violence in 2010.

The bursting of the Spanish property bubble in 2008 led to the 2008–16 Spanish financial crisis. High levels of unemployment, cuts in government spending and corruption in Royal family and People's Party served as a backdrop to the 2011–12 Spanish protests. Catalan independentism also rose. In 2011, Mariano Rajoy's conservative People's Party won the election with 44.6% of the votes. As prime minister, he implemented austerity measures for the EU bailout, the EU Stability and Growth Pact. On 19 June 2014, the monarch, Juan Carlos, abdicated in favor of his son, who became Felipe VI.

In October of 2017 a Catalan independence referendum was held and the Catalan parliament voted to unilaterally declare independence from Spain to form the Catalan Republic on the day the Spanish Senate was discussing approving direct rule over Catalonia as called for by the Spanish Prime Minister. On the same day, the Senate granted the power to impose direct rule and Rajoy dissolved the Catalan parliament and called a new election. No country recognized Catalonia as a separate state.

In June 2018, the Congress of Deputies passed a motion of no-confidence against Rajoy and replaced him with the PSOE leader Pedro Sánchez. In 2020, the COVID-19 virus was confirmed to have spread to Spain, where it caused as of June 2021 more than 80 thousand deaths, causing life expectancy to drop by more than 1 year. Spain became the sixth nation in the world to make active euthanasia legal.