[2] Archeological evidence in places like Los Millares and El Argar suggests developed cultures existed in the eastern part of the Iberian Peninsula during the late Neolithic and the Bronze Age.
[4] Spanish prehistory extends to the pre-Roman Iron Age cultures that controlled most of Iberia: those of the Iberians, Celtiberians, Tartessians, Lusitanians, and Vascones and trading settlements of Phoenicians, Carthaginians, and Greeks on the Mediterranean coast.
The Reconquista gathered momentum during the 12th century, leading to the establishment of the Christian kingdoms of Portugal, Aragon, Castile and Navarre and by 1250, had reduced Muslim control to the Emirate of Granada in the south-east.
The figure of Pelagius, a by-product of the Asturian chronicles of Alfonso III (written more than a century after the alleged battle), has been later reconstructed in conflicting historiographical theories, most notably that of a refuged Visigoth noble or an autochthonous Astur chieftain.
[66] Muslim interest in the peninsula returned in force around the year 1000 when Al-Mansur (Almanzor) sacked Barcelona in 985, and he assaulted Zamora, Toro, Leon and Astorga in 988 and 989, which controlled access to Galicia.
In the 12th century the Almoravid empire broke up again, only to be taken over by the Almohad invasion, who were defeated by an alliance of the Christian kingdoms in the decisive Battle of Las Navas de Tolosa in 1212.
The monarchs oversaw the final stages of the Reconquista of Iberian territory from the Moors with the conquest of Granada, conquered the Canary Islands, and expelled the Jews from Spain under the Alhambra Decree.
Juana, Isabella's second daughter, married into the Habsburg dynasty when she wed Philip the Fair, the son of Maximilian I, King of Bohemia (Austria) and likely heir to the crown of the Holy Roman Emperor.
[75] By 1520, European military technology combined with the devastating epidemics such as bubonic plague and pneumonia brought by the Castilians and enslavement and deportation of natives led to the extinction of the Guanches.
Spanish Conquistadors, operating privately, deposed the Aztec, Inca and Maya governments with extensive help from local factions and took control of vast stretches of land.
Diego Velázquez, regarded as one of the most influential painters of European history and a greatly respected artist in his own time, cultivated a relationship with King Philip IV and his chief minister, the Count-Duke of Olivares, leaving several portraits that demonstrate his style and skill.
The following year Spanish forces based in the Southern Netherlands hit back with devastating lightning campaigns in northern France that left the economy of the region in tatters.
A prominent internal factor was the Spanish economy's dependence on the export of luxurious Merino wool, which had its markets in northern Europe reduced by war and growing competition from cheaper textiles.
[91] While Spain built a rich American Empire that exported a silver treasure fleet every year, it was unable to focus its financial, military, and diplomatic power on building up its Spanish base.
A writer and follower of the philosophers of the Enlightenment tradition of the previous century, Jovellanos had served as Minister of Justice from 1797 to 1798 and now commanded a substantial and influential group within the Central Junta.
France crushed the liberal government with massive force in the so-called "Hundred Thousand Sons of Saint Louis" expedition, and Ferdinand was restored as absolute monarch in 1823.
This prevented the formation of a federal republican government, forced the dissolution of the Parliament and led to the instauration of a unitary praetorian republic ruled by General Serrano, paving the way for the Restoration of the Monarchy through another pronunciamiento, this time by Arsenio Martínez Campos, in December 1874.
[138] The Restoration period, following the proclamation of the 1876 Constitution, witnessed the installment of an uncompetitive parliamentary system devised by Antonio Cánovas del Castillo, in which two "dynastic" parties, the conservatives and the liberals alternated in control of the government (turnismo).
[146] The bipartisan system began to collapse in the later years of the constitutional part of the reign of Alfonso XIII, with the dynastic parties largely disintegrating into factions: the conservatives faced a schism between datistas, mauristas and ciervistas.
[163][164] A provisional government presided by Niceto Alcalá Zamora was installed as the Republic, popularly nicknamed as "la niña bonita" ('the pretty girl'),[165] was proclaimed on 14 April 1931, a democratic experiment at a time when democracies were beginning to descend into dictatorships elsewhere in the continent.
The dominant bloc emerging from the election, an alliance of liberals and socialists, brought Manuel Azaña (who had undertaken a decisive reform as War minister in the provisional government by trying to democratize the Armed Forces)[167] to premiership, heading from the on a number of coalition cabinets.
[168] While the Republican government was able to easily quell the first 1932 coup d'etat led by José Sanjurjo, the generals, who felt humiliated because of the military reform privately developed a strong contempt towards Azaña.
[171] The coup failed everywhere but in the Catholic heartland (Galicia, Old Castile and Navarre), Morocco, Zaragoza, Seville and Oviedo, while the rest of the country remained loyal to the Republic, including the main industrial cities (such as Madrid, Barcelona, Valencia and Bilbao), where the putschists were crushed by the combined action of workers and peasants.
[172] The Republic looked to the Western democracies for help, but following an earlier commitment to provide assistance by French premier Léon Blum, by 25 July the latter had already backtracked on it, as to the mounting inner division within his country the British opposition to intervention added up, as the sympathies of the UK lied in the Rebel faction.
[175] After the Spanish Civil War, the active agrarian population began to decline in Spain, the provinces with latifundia in Andalusia continued being the ones with the greatest number of day laborers; at the same time this was the region with the lowest literacy share.
Nazi Germany and Fascist Italy both signed that agreement, but ignored it and sent supplies and vital help, including a powerful air force under German command, the Condor Legion.
Franco intended to seize power immediately, but successful resistance by Republicans in the key centers of Madrid, Barcelona, Valencia, the Basque country, and other points meant that Spain faced a prolonged civil war.
On 23 February Antonio Tejero, with members of the Guardia Civil entered the Congress of Deputies, and stopped the session, where Leopoldo Calvo Sotelo was about to be named prime minister.
Economists concluded in early 2013 that, "Where once Spain's problems were acute, now they are chronic: entrenched unemployment, a large mass of small and medium-sized enterprises with low productivity, and, above all, a constriction in credit.
"[193] With the financial crisis and high unemployment, Spain is now suffering from a combination of continued illegal immigration paired with a massive emigration of workers, forced to seek employment elsewhere under the EU's "Freedom of Movement", with an estimated 700,000, or 1.5% of total population, leaving the country between 2008 and 2013.