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.
Mainland Spain is dominated by high plateaus and mountain ranges such as the Pyrenees or the Sierra Nevada. Running from these heights are several major rivers such as the Tajo, the Ebro, the Duero, the Guadiana and the Guadalquivir. Alluvial plains are found along the coast, the largest of which is that of the Guadalquivir in Andalusia, in the east there are alluvial plains with medium rivers like Segura, Júcar and Turia. Spain is bound to the east by Mediterranean Sea (containing the Balearic Islands), to the north by the Bay of Biscay and to its west by the Atlantic Ocean, where the Canary Islands off the African coast are found.
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.
Terrorism is a problem of present-day Spain, since ETA (Basque Homeland and Freedom) is trying to achieve Basque independence through violent means, including bombings and murders. Although Basque Autonomous government does not condone any kind of violence, the different approaches to the problem are a source of tension between Central and Basque governments. Besides ETA violence, the conflict in the Basque Country is also shaped by the non-acceptance on the part of the spanish state of the right of basque people to choose freely their political status. Recently, 2 political parties - which in previous elections had received the support of around 15% of the popular vote- have been banned due to their negative to condemn publicly ETA violence in the terms that the main spanish political parties wanted.
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.
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.
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 expulsion of the Muslims was reputedly started by the first King of Asturias, named Pelayo (718-737), who started his fight against the Moors in the mountains of Covadonga (722). Later, his sons and descendants continued with his work until all of the Muslims were expelled. Meanwhile, in the east of the peninsula the Frankish emperors established the Marca Hispanica across the Pyrenees in part of what today is Catalonia, reconquering Girona in 785 and Barcelona in 801. It was a buffer zone against Islam.
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.
The original peoples of the Iberian peninsula (in the sense that they are not known to have come from elsewhere), consisting of a number of separate tribes, are given the generic name of Iberians. This may have included the Basques, the only pre-Celtic people in Iberia surviving to the present day as a separate ethnic group. The most important culture of this period is that of the city of Tartessos. Beginning in the 9th century BC, Celtic tribes entered the Iberian peninsula through the Pyrenees and settled throughout the peninsula, becoming the Celt-Iberians.
The first governments of the Republic, were center-left, headed by Niceto Alcalá-Zamora, and Manuel Azaña. In 1933, the right-wing CEDA won power; an armed rising of workers of October 1934, which reached its greatest intensity in Asturias and Catalonia, was forcefully put down by the CEDA government.