The Napoleonic invasion gave the opportunity to the American colonies, led by Libertadores, to claim their independence. Between 1810 and 1824, Chile, Colombia, Ecuador, Venezuela, and the other colonies declared and won their independence. The only New World colonies Spain was left with were the islands of Cuba and Puerto Rico. The Allies fought Napoleon's forces in the Peninsular War, with Joseph Bonaparte ruling as king at Madrid. In 1812 the Cortes took refuge at Cádiz and created the first modern Spanish constitution, the Constitution of 1812 (informally named La Pepa).
Madrid, the capital of Spain, is located in the center of the country. Population of the city of Madrid proper was 3,093,000 as of 2003 estimates.
Mistreatment of the Moorish population in Morocco led to an uprising and the loss of all North African possessions except for the enclaves of Ceuta and Melilla in 1921. Abd el-Krim, Annual. In order to avoid accountability, the king Alfonso XIII decided to support the dictatorship of general Miguel Primo de Rivera.
While the siesta — an hours-long mid-afternoon break from work — is generally in decline, the typical rhythm of the day in Spain remains relatively distinct from the European norm. Many shops and some museums (though relatively few other businesses) still split their hours into two distinct periods of opening with a two or three hour break in the middle; a paseo (stroll) in the early evening remains a common custom in many smaller cities and to some extent even in the larger ones; the dinner hour is the latest in Europe, typically about 10 p.m.; nightlife begins accordingly late, with many dance clubs (even in relatively small cities) opening at midnight and staying open until dawn; in Madrid in the summer there is nothing unusual about a live musical performance being scheduled for one or two o'clock in the morning.
In 1898 Spain lost the Spanish-American War. Cuba gained its independence, and Spain lost its remaining New World colonies—Guam, the Philippines, and Puerto Rico—to the United States. Spain's colonial possessions were reduced to Spanish Morocco, Western Sahara and Equatorial Guinea.
The original peoples of the Iberian peninsula (in the sense that they are not known to have come from elsewhere), consisting of a number of separate tribes, are given the generic name of Iberians. This may have included the Basques, the only pre-Celtic people in Iberia surviving to the present day as a separate ethnic group. The most important culture of this period is that of the city of Tartessos. Beginning in the 9th century BC, Celtic tribes entered the Iberian peninsula through the Pyrenees and settled throughout the peninsula, becoming the Celt-Iberians.
The Complutense University is one of the oldest universities in the world, as well as the largest and (after Salamanca) most prestigious in Spain. It has 10000 staff and a student population of 117 000. It is located on two campuses, in the university quarter Ciudad Universitaria at Moncloa in Madrid, and in Somosaguas.
Under the Bonaparte, Spain failed to embrace the mercantile and industrial revolutions of the 18th century, and also failed to absorb the ideals that of the Enlightenment that were revolutionizing European thought. These missed opportunities, combined with the economic failures of the 17th century, caused the country to fall desperately behind Britain, France, and Germany in economic and political power.
In 1499, about 50,000 Moors in Granada were coerced by Cardinal Cisneros into mass baptisms and conversion. During the uprising that followed (known as the First Rebellion of the Alpujarras), people who refused the choices of baptism or deportation to Africa, were systematically eliminated. What followed was a mass flee of Moors, Jews and Gitanos from Granada city and the villages to the mountain regions (and their hills) and the rural country, however by 1500 Cisneros reported that "There is now no one in the city who is not a Christian, and all the mosques are churches".
Spain suffered a shocking terrorist attack, the March 11, 2004 Madrid attacks on its capital's commuter train network, killing 200. Al-Qaeda has been blamed for this attack. Some have attributed the fall of the Aznar government to this attack, which took place just two days before the 2004 elections. At first the public believed ETA was responsible for the bombing. When they learned Al-Qaeda was the true culprit, many voters lashed out at the media and Aznar's government, believing the two had colluded to deceive the public.
Over the past thirty years, Spain has become a more secularised society. The number of believers has decreased significantly and for those who believe the degree of accordance and practice to their church is quite diverse.
Contemporary Madrid came into its own after the death of the Fascist dictator Franco. Years of the Franco regime left Madrid and much the country in economic shambles due to isolation. With his death, Madrid and Spain as a whole began to re-assert itself on the international stage. Within Spain, reaction against the dictatorial bureaucracy centered in Madrid and a history of centralism that pre-dated Franco by centuries has resulted in the successful modern movement towards increased autonomy for the regions of Spain, considered as European regions, under the umbrella of Spain.
After the fall of the Roman Empire, Germanic tribes invaded the former empire, several turned sedentary and created successor-kingdoms to the Romans in various parts of Europe. Iberia was taken over by the Visigoths after 410.In the Iberian peninsula, as elsewhere, the Empire fell not with a bang but with a whimper. Rather than there being any convenient date for the "fall of the Roman Empire" there was a progressive "de-Romanization" of the Western Roman Empire in Hispania and a weakening of central authority, throughout the 3rd, 4th and 5th centuries. At the same time, there was a process of "Romanization" of the Germanic and Hunnic tribes settled on both sides of the limes (the fortified frontier of the Empire along the Rhine and Danube rivers). The Visigoths, for example, were converted to Arian Christianity around 360, even before they were pushed into imperial territory by the expansion of the Huns. In the winter of 406, taking advantage of the frozen Rhine, the (Germanic) Vandals and Sueves, and the (Asiatic) Alans invaded the empire in force. Three years later they crossed the Pyrenees into Iberia and divided the Western parts, roughly corresponding to modern Portugal and western Spain as far as Madrid, between them. The Visigoths meanwhile, having sacked Rome two years earlier, arrived in the region in 412 founding the Visigothic kingdom of Toulouse (in the south of modern France) and gradually expanded their influence into the Iberian peninsula at the expense of the Vandals and Alans, who moved on into North Africa without leaving much permanent mark on Hispanic culture. The Visigothic kingdom shifted its capital to Toledo and reached a high point during the reign of Leovigild, treated in some detail at its own entry.
Spain was part of the Roman Empire and many areas of Spain retain significant Roman architectural remnants. The Roman aqueduct at Segovia is still in use as of 2004; Mérida, now the Extermaduran capital but once the capital of the Roman province of Lusitania, retains over 5 miles of its Roman aqueduct, Roman bridge over the River Guadiana, an arch of Trajan, and significant remnants of a Roman forum, amphitheatre, and a temple popularly accounted to have been dedicated to Diana (goddess). Another Roman bridge crosses the Tagus River at Alcántara. Lesser Roman ruins can be found in the heart of Barcelona.
Spain never entered the period of the Dark Ages such as were endured in Britain, Gaul, Lombardy and Germany. The Visigoths tended to maintain more of the old Roman institutions, and they had a unique respect for legal codes that resulted in continuous frameworks and historical records for most of the period between 415, when Visigothic rule in Spain began, and 711, when it is traditionally said to end. The proximity of the Visigothic kingdoms to the Mediterranean and the continuity of western Mediterranean trade, though in reduced quantity, supported Visigothic culture. Arian Visigothic nobility kept apart from the local Catholic population. The Visigoth ruling class looked to Constantinople for style and technology while the rivals of Visigothic power and culture were the Catholic bishops— and a brief incursion of Byzantine power in Cordoba.