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 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.
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.
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.
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.
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).
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.
Roman Catholicism is, by far, the most popular religion in the country, with four in five Spaniards (80%) self-identifying as Catholics. The next group (one in eight, or 12%) is represented by atheists or agnostics. Minority religions account for one in seventy (1.4%) of all Spaniards.
On February 20th 2005, Spain became the first country to allow its people to vote on the European Union constitution that was signed in October 2004. The rules states that if any country rejects the constitution then the constitution will be declared void. The final result was very strongly in affirmation of the constitution, making Spain the first and so far only country to approve the constitution via referendum.
Around 1,100 BC Phoenician merchants founded the trading colony of Gadir or Gades (modern day Cádiz) near Tartessos. In the 8th century BC the first Greek colonies, such as Emporion (modern Empúries), were founded along the Mediterranean coast on the East, leaving the south coast to the Phoenicians. The Greeks are responsible for the name Iberia, after the river Iber (Ebro in Spanish). In the 6th century BC the Carthaginians arrived in Iberia while struggling with the Greeks for control of the Western Mediterranean. Their most important colony was Carthago Nova (Latin name of modern day Cartagena).
The dictatorship of Miguel Primo de Rivera collapsed in 1930. Disgusted with the king's involvement in it, urban population voted for republican parties in the municipal elections of April 1931. The king was forced to resign and a republic was established.
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.
Spanish cuisine is made of very different kinds of dishes due to the differences in geography, culture and climate. It is heavily influenced by the variety of seafood available from the waters that surround the country. As Spain has had a history with many different cultural influences, the richness and variety of its cuisine is overwhelming, but all these ingredients have made up a unique cuisine with thousands of recipes and flavours. Much influence on Spanish cuisine has come from the Jewish and Moorish traditions. The Moors were a strong influence in Spain for many centuries and their food is still eaten in Spain today.