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).
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 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.
According to the latest official poll, 80% of Spaniards self-identify as Catholic, 12% as non-believer, and 1% as other (the remaining 7% declined to state). Of the 1.4% identifying as other, 29% identified as Evangelical Christian, 26% as Jehovah's Witnesses and 3% as Muslim (the rest either mentioned smaller religions or declined to state). According to the same poll, 73% believe in God, 14% don't and 12% are unsure (1% declined to state). Additionally, according to this poll, only 41% believe in Heaven. 24% of the Spaniards think that the Bible is just a fable. Only 25% of Catholics go to church at least once a week.
Historically, various regions of Spain had quite distinct regional dress. Today, most people in Spain dress in a manner comparable to most other contemporary Europeans, although some regional variations persist. Dress in Extremadura and in the smaller cities of Castile remains relatively austere, even on festive occasions, while Andaluz dress on festive occasions is elaborate and ostentatious. Barcelona is one of the most stylish cities in Europe, though more restrained and with a more determinedly timeless style than Paris or Milan.
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.
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.
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.
Madrid is home to Real Madrid, the world's most successful football club (according to FIFA). There are three other major teams, the Primera Division club Atlético de Madrid, Getafe Club de Futbol and Rayo Vallecano.
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.