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.
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.
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.
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 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.
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.
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 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.
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 most important minority group in the country are the Gitanos. Other indigenous minorities are Mercheros (or Quinquis) and Vaqueiros de alzada.- The latter, meaning "Mountain cow-breeders" dwell in mountain ranges in the Principality of Asturias and have kept historically apart from the valley dwellers. Foreign minorities include South Americans from countries like Argentina, Ecuador or Colombia; black Africans; Arabs and Berbers mainly from Morocco and other countries of North Africa; and Asians from China, Japan, Korea, and Vietnam.
Until 1714, Spain was a loose confederation of kingdoms and statelets, under the same king, until King Philip V removed the autonomous status of the Aragonese crown. Moreover, the creation of a unified state in the 19th and 20th centuries has lead to the present situation, apparently simple, but sometimes extremely confusing. During the Second Spanish Republic (1931-1936), the Basque and Catalan were given limited self-government, which was lost after the Spanish Civil War (1936-1939) and restored in 1978 during the transition to democracy.
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.
Spain remained officially neutral in World Wars I and II, but suffered through a devastating Civil War (1936-39). During Franco's rule, Spain remained largely economically and culturally isolated from the outside world, but slowly began to catch up economically with its European neighbors. Under Franco, Spain actively sought the return of Gibraltar by the UK, and gained some support for its cause at the United Nations. During the 1960s, Spain began imposing restrictions on Gibraltar, culminating in the closure of the border in 1969. It was not fully reopened until 1985.
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.