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.
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 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.
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.
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.
Contemporary Madrid came into its own after the death of the Fascist dictator Franco. Years of the Franco regime left Madrid and much the country in economic shambles due to isolation. With his death, Madrid and Spain as a whole began to re-assert itself on the international stage. Within Spain, reaction against the dictatorial bureaucracy centered in Madrid and a history of centralism that pre-dated Franco by centuries has resulted in the successful modern movement towards increased autonomy for the regions of Spain, considered as European regions, under the umbrella of Spain.
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.
As recently as the mid-20th-century, much of Spain (especially outside of the major cities) remained quite distinct from the rest of Europe. In 1954, V.S. Pritchett could still write of small Spanish towns, "The inn, if there is one, will not be a hotel, nor even a fonda — the Arab word — but perhaps a posada: a place one can ride into with a mule or a donkey, where one can stable an animal and lie down oneself on a sack of straw, the other side of the stall." [Pritchett, 1954 p. 46-47] However, especially since the 1975 death of Francisco Franco, Spain has become increasingly European; Pritchett's rustic posada would be unimaginable today.
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.
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.
Over the past thirty years, Spain has become a more secularised society. The number of believers has decreased significantly and for those who believe the degree of accordance and practice to their church is quite diverse.
In 1499, about 50,000 Moors in Granada were coerced by Cardinal Cisneros into mass baptisms and conversion. During the uprising that followed (known as the First Rebellion of the Alpujarras), people who refused the choices of baptism or deportation to Africa, were systematically eliminated. What followed was a mass flee of Moors, Jews and Gitanos from Granada city and the villages to the mountain regions (and their hills) and the rural country, however by 1500 Cisneros reported that "There is now no one in the city who is not a Christian, and all the mosques are churches".
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.
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.