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).
Spain is a constitutional monarchy, with a hereditary monarch and a bicameral parliament, the Cortes Generales or National Assembly. The executive branch consists of a Council of Ministers presided over by the President of Government (comparable to a prime minister), proposed by the monarch and elected by the National Assembly following legislative elections.
The most well-known variety of Spanish folk music is likely flamenco, a diverse genre created by Andalusian Roma. Flamenco is known since at least the 1770s, and has been through several cycles of dwindling popularity and rebirth. The style has produced many of the most famous Spanish musicians, including singer Camarón de la Isla and guitarist Carlos Montoya. Outside of flamenco, regional Spanish folk music includes the distinct Basque trikitrixa and accordion music, Galician and Asturian gaita (bagpipe) and Aragonese jota. Though some folk traditions have died out or are moribund, some retain great popularity and have been modernized and adapted to new instruments, styles and formats. These include the popular Celtic music of Galicia, the singer-songwriter tradition of nova canço and New Flamenco.
In 711, Arabs and Berbers had converted to Islam, a religion founded in the 7th century by prophet Muhammad and which by the 8th dominated all the north of Africa. A raiding party led by Tariq ibn-Ziyad was sent to intervene in a civil war in the Visigothic kingdoms in Iberia. Crossing the Strait of Gibraltar, it won a decisive victory in the summer of 711 when the Visigoth king Roderic was defeated and killed on July 19th at the Battle of Guadalete. Tariq's commander, Musa bin Nusair quickly crossed with substantial reinforcements, and by 718 the Muslims dominated most of the peninsula. The advance into Europe was stopped by the Franks under Charles Martel at the battle of Poitiers (France) in 732.
A revived movement for the Christian unification of Spain was capitalized on by the "Catholic monarchs" (Reyes Católicos in Spanish) Isabel I of Castilla and Fernando II of Aragón in order to justify their invasion of Granada, the expulsion of the Jews and the forceful conversion of the Moors. In the 15th century, the Kingdoms of Castile and Aragon were united under Isabel and Fernando. These two able rulers ruled jointly and worked to consolidate the power of the monarchy at the expense of the nobility. During their reign, the castles of many nobles (symbols of aristocratic independence from the monarchy) were demolished, and a system of regular taxation was established. Fernando and Isabel established the basis for the unification of Spain religiously as well as politically and economically.
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.
Madrid is also noted for its nightlife and discotheques. Younger madrileños sometimes dance all night, stop off for chocolate y churros at dawn, go home, shower, shave, and go to work. This nightlife, called la movida or la marcha and initially focussed on the Plaza del Dos de Mayo, flourished after the death of Franco, especially during the 80's while Madrid's most cherished mayor Enrique Tierno Galván was in office. A particular hub for this night activity is nowadays the nearby gay village of Chueca. However, as prices continue to rise and more jobs become available, nightlife in Madrid is becoming more and more like that of other European cities such as Stockholm or Munich.
Spain is considered by many, including a large part of Spanish population, to be a group of nations unified under a single State, much like Belgium, Switzerland or the United Kingdom. Despite this, the policy of many Spanish governments has led to a "Spanish nationhood" which is the one people identify with Spain internationally.
After World War II, being one of few surviving fascist regimes in Europe, Spain was politically and economically isolated and was kept out of the United Nations until 1955, when it became strategically important for U.S. president Eisenhower to establish a military presence in the Iberian peninsula. This opening to Spain was aided by Franco's rabid anti-communism.
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.