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).
The 20th century initially brought little peace; colonisation of Western Sahara, Spanish Morocco and Equatorial Guinea was attempted as a substitute for the loss of the Americas. A period of dictatorial rule (1923-1931) ended with the establishment of the Second Spanish Republic. The Republic offered political autonomy to the Basque Country and Catalonia and gave voting rights to women. However, with increasing political polarisation and pressure from all sides, coupled with growing and unchecked political violence, the Republic ended with the outbreak of the Spanish Civil War in July 1936. Following the victory of the nationalist forces in 1939, General Francisco Franco ruled a nation exhausted politically and economically until his death in 1975.
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.
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.
The dry weather of Spain resulted in the importance of water fountains in Spanish urban design. In addition, ceramics figure prominently in architecture throughout Spain, especially in the tile roofs and the use of decorative tiles known as azulejos.
Spanish rule in Morocco ended in 1956. Though militarily victorious in the 1957-1958 Moroccan invasion of Spanish West Africa, Spain gradually relinquished its remaining African colonies. Spanish Guinea was granted independence as Equatorial Guinea in 1968, while the Moroccan enclave of Ifni had been ceded to Morocco in 1969.
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 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.
The crown jewel of Spain's next decade of infrastructure construction is the Spanish high speed rail network, Alta Velocidad Española AVE. Currently, an ambitious plan includes the construction of a 7000 km network, centered naturally on Madrid. The overall goal is to have all important provincial cities be no more than 4 hours away from Madrid, and no more than 6 hours away from Barcelona. Currently, AVE high-speed trains link Atocha station to Seville in the south and Lleida in the east (to be extended to Barcelona).
The Castilian-derived Spanish (called both Español and Castellano in the language itself) is the official language throughout Spain, but other regional languages are also spoken. Without mentioning them by name, the Spanish Constitution recognizes the possibility of regional languages being coofficial in their respective autonomous communities.
With the approval of the Spanish Constitution of 1978 and the arrival of democracy, the old historic nationalities — Basque Country, Catalonia, Galicia and Andalusia— were given far-reaching autonomy, which was then soon extended to all Spanish regions, resulting in one of the most decentralized territorial organizations in Western Europe.
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 Romans arrived in the Iberian peninsula during the Second Punic war in the 2nd century B.C., and annexed it under Augustus after two centuries of war with the Celtic and Iberian tribes and the Phoenician, Greek and Carthaginian colonies becoming the province of Hispania. Some of Spain's present languages, religion, and laws originate from this Roman period.
Except for the subtropical Canary Islands, Spain can be divided into areas experiencing, respectively, a Mediterranean climate; a climate dominated by the Atlantic Ocean; and (in the inner areas) a rather extreme climate with hotter summers and colder winters than nearer the coasts. The generally warm and relatively dry summers have led to a culture in which a lot of life is lived outdoors, whether on a patio in the courtyard of a building or on a public plaza. In Madrid, many of the most popular nightclubs move for several months in the summer to an outdoor terrasa much farther from the center of town than their indoor winter location, continuing in a way the older tradition of the verbena (fair). In the Mediterranean areas (and in the Canary Islands), outdoor meals can be a nearly year-round phenomenon.