Spain profile - Timeline

A chronology of key events:

1492 - The Christian Kingdoms of Castile and Aragon conquer the Emirate of Granada, ending nearly 800 years of Muslim rule in the south and founding modern Spain as a united state.

Image copyright Getty Images
Image caption Replicas of the ships of Christopher Columbus arrive in New York in 1992 to celebrate the 500th anniversary of his landing in the Americas

Christopher Columbus arrives in the Americas, heralding the conquest of much of South and Central America. Jews and later Muslims are expelled from Spain during the Inquisition.

16th-17th centuries - Spanish Empire at its height, with Spain the predominant European power. The rise of Protestant states in northern Europe and the Ottoman Empire in the Mediterranean begin the country's gradual decline.

18th century - The War of the Spanish Succession loses Spain its European possessions outside the Iberian Peninsula. Bourbon dynasty, originally from France, centralises the Spanish state, shutting down many regional autonomous assemblies and modernising government and the military.

1807-1814 - Napoleon's France occupies Spain, which has been a French satellite since 1795. Fierce nationalist resistance and British intervention in the Peninsular War gradually force French troops out.

Image copyright Hulton Archive
Image caption US troops advance on Manila during the Spanish-American War, when Spain lost some of its colonies

19th century - Napoleonic legacy of political division and economic dislocation leaves Spain weak and unstable, with frequent changes of government and a low-level insurgency by Carlist supporters of a rival branch of the royal family. All Latin American colonies win their independence, with Cuba, Puerto Rico and the Philippines in Asia lost during a disastrous war with the United States in 1898.

1910s - Spain sought compensation in conquering colonies in Africa, most significantly northern Morocco and the Spanish Sahara.

1920s - The trade boom achieved by neutrality in the First World War is squandered through fighting Moroccan rebels and the financial mismanagement of the Primo de Rivera dictatorship at home.

1931 - The return of democratic government leads to an electoral backlash against the monarchy and its allies, and a republic is declared. Radical policies of land reform, labour rights, educational expansion and anti-Church legislation deepen the political divide.

1936 - After two years of right-wing government, a Popular Front coalition of left-wing and liberal parties narrowly wins parliamentary elections and seeks to reintroduce the radical policies of 1931. A coup by right-wing military leaders captures only part of the country, leading to three years of civil war.

Nazi Germany and Fascist Italy actively support the Nationalist rebels, while only the Soviet Union provides highly conditional assistance to the Republic. Britain and France support an arms embargo that effectively dooms the Republic, despite enthusiastic volunteers from all over Europe and the Americas who join the Communist-run International Brigades.

1939 - General Francisco Franco leads the Nationalists to victory in the Civil War. More than 350,000 Spaniards died in the fighting, and Franco purges all remaining Republicans. Spain remains neutral throughout the Second World War, although the government's sympathies clearly lie with the Axis powers.

1946-50 - Francoist Spain is ostracised by United Nations and many countries sever diplomatic relations.

1950s - As the Cold War deepens the US gradually improves relations with Spain, extending loans in return for military bases. Spain is admitted to the UN in 1955 and the World Bank in 1958, and other European countries open up to the Franco government.

El Milagro Espanol - the economic miracle of the late 1950s - sees Spain's manufacturing and tourism industries take off through liberalisation of state controls over the next two decades.

1959 - The Eta armed separatist group is founded with the aim of fighting for an independent homeland in the Basque region of Spain and France. Its violent campaign begins with an attempt to derail a train carrying politicians in 1961.

1968 - West African colony of Spanish Guinea gains independence as Equatorial Guinea.

1973 December - Eta kills Prime Minister Admiral Luis Carrero Blanco in retaliation for the government's execution of Basque fighters. Subsequent attempts to liberalise the Franco government founder on internal divisions.

Move to democracy

1975 November - Franco dies. Succeeded as head of state by King Juan Carlos. With Juan Carlos on the throne, Spain makes transition from dictatorship to democracy. Spain withdraws from the Spanish Sahara, ending its colonial empire.

1977 June - First free elections in four decades. Ex-Francoist Adolfo Suarez's Union of the Democratic Centre manages a relatively smooth transition to stable democracy.

1978 - New constitution confirms Spain as a parliamentary monarchy. Eta's political wing, Herri Batasuna, is founded. 'Galaxia' coup plot uncovered.

1980 - 118 people are killed in Eta's bloodiest year so far.

1981 February - Coup attempt; rebels seize parliament and tanks take to the streets of Valencia in an attempt to prevent the appointment of a new Union of the Democratic Centre government. Plotters surrender after King Juan Carlos makes a televised address demanding an end to the coup.

1982 - Another coup plot by right-wing extremists discovered shortly before Socialists win large majority and form a government. Spain joins Nato.

1986 - Spain joins the European Economic Community, later to become the European Union.

1992 - Summer Olympic Games held in Barcelona. Seville hosts Expo 92. Celebrations mark the 500th anniversary of Columbus's first voyage to America.

Aznar years

1996 March - Jose Maria Aznar becomes PM following a stability deal with moderate Catalan and Basque nationalists, who hold the balance of power, after a general election in which his Popular Party emerges as the largest party but without an outright majority.

Image copyright Getty Images
Image caption Rebels attempted a coup in 1981 but King Carlos defused the situation

1997 July - Eta, demanding that Basque prisoners be transferred closer to home, kidnaps and kills Basque councillor Miguel Angel Blanco. Killing sparks national outrage and brings an estimated 6 million Spaniards onto the streets in protest.

1997 December - 23 leaders of Herri Batasuna jailed for seven years for collaborating with Eta - the first time any members of the party are jailed as a result of Eta links.

1998 April - Crops destroyed and wildlife wiped out when an iron pyrite mine reservoir belonging to a Canadian-Swedish company bursts its banks causing toxic waste spillage. Waterways feeding Europe's largest wildlife reserve, the Donana national park, are severely contaminated.

1998 September - Eta announces its first indefinite ceasefire since its campaign of violence began. It calls the ceasefire off in November, claiming lack of a response from the government.

2000 March - Aznar's Popular Party (PP) wins landslide in general elections.

2002 January - Peseta replaced by Euro.

2002 June - Eta suspected of being behind bomb blasts in several tourist resorts as EU summit held in Seville.

2002 November - North-west coastline suffers ecological disaster after oil tanker Prestige breaks up and sinks about 130 miles out to sea.

2003 March - Indefinite ban imposed on Basque separatist Batasuna party.

Madrid attacks

Image copyright Getty Images
Image caption Catalan architect Antoni Gaudi shattered traditional concepts

2004 March - 191 people killed in explosions on packed rush-hour trains in Madrid in near-simultaneous pre-election attacks by an Islamic group with links to al-Qaeda.

With Spain still in mourning, the Socialists under Jose Luis Rodriguez Zapatero defy earlier opinion polls and win a general election.

2004 April - Prime Minister Zapatero orders Spanish troops withdrawn from Iraq in May.

2005 June - Parliament defies Roman Catholic Church by legalising gay marriage and granting homosexual couples same adoption and inheritance rights as heterosexual ones.

2005 September-October - At least 11 die and many more are injured in a series of mass attempts by African migrants to enter the enclaves of Melilla and Ceuta from Morocco in a bid to reach Spain. Spain reviews decision to deport those who do get through back to Morocco after expressions of international concern.

2006 January - Lt Gen Jose Mena Aguado sacked as head of army ground forces after suggesting that the military might take action in Catalonia if the region gains too much autonomy.

Eta ceasefire

2006 March - Eta declares a ceasefire, but government withdraws offer to hold peace talks after a car bombing at Madrid airport in December. Eta calls off ceasefire in June 2007.

Image copyright Getty Images
Image caption The movement seeking independence for Catalonia has been growing in strength

2006 June - Voters in Catalonia back proposals to give the region greater autonomy as well as the status of a nation within Spain.

2007 October - Twenty-one mainly North Africans are found guilty and given long jail sentences for the Madrid train bombings in 2004.

2007 November - Parliament passes a bill formally denouncing Franco's rule and ordering the removal of all Franco-era statues and symbols from streets and buildings.

2008 March - The Socialists win re-election with an increased margin, but falls short of an absolute majority.

Economic crisis

2009 January - Spanish economy enters recession for first time since 1993.

2009 May - The parliament of the Basque region votes in the first non-nationalist regional government in more than 30 years under Socialist leadership, following elections in March.

2009 July - Foreign Minister Miguel Angel Moratinos visits Gibraltar - the first visit by a Spanish minister in 300 years.

2010 February - Thousands of workers demonstrate against government spending cuts and plans to raise the retirement age by two years to 67 - the first mass labour protests since the Socialists came to power in 2004.

2010 May - Unemployment rate climbs to over 20% for first time in nearly 13 years. Parliament approves 15bn-euro (£13bn) austerity package.

New Eta ceasefire

2010 September - Eta declares new ceasefire. Spanish government dismisses the move, saying there can be no political settlement until Eta renounces violence for good and disarms.

Image copyright Getty Images
Image caption Spaniards were put under severe pressure by economic problems

2011 November - Conservative Popular Party wins resounding victory in parliamentary election.

2011 December - New government headed by Mariano Rajoy takes office. Announces new round of austerity measures to slash public spending by 16.5bn euros (£14bn) and nearly halve the public deficit from about 8% of GDP in 2012.

2012 January - Unemployment total passes the 5 million mark. This represents a jobless rate of 22.8% - the highest in the eurozone. Almost half of all 16-24 year-olds are out of work.

2012 April - Spain slips back into recession as economy contracts by 0.3% in the first quarter of 2012, and by 0.4% in the second.

Action on banks

2012 September - Government creates "bad bank" to off-load toxic property assets of indebted banking sector. Eurozone countries demand this as one of a number of conditions for any bail-out loan for Spain.

2012 November - The Basque armed group Eta issues a statement that it is ready to disband, disarm and enter talks with the French and Spanish governments.

2013 April - Spain's unemployment rate soars to new record of 27.2% of the workforce in the first quarter, passing six million figure, although the rate of increase slows.

2013 September - Economy registers 0.1% growth in July-September, formally lifting it out of recession.

2014 June - King Juan Carlos abdicates, succeeded by the crown prince as Felipe VI.

2014 November - Spanish government dismisses the result of a symbolic independence referendum in Catalonia.

New political forces

2015 December - Popular Party government loses majority in general election that sees populist anti-austerity movement Podemos and new liberal Cuidadanos movement perform well. Main opposition Socialist Party declines to join Prime Minister Rajoy in a coalition.

2016 June - Acting Prime Minister Mariano Rajoy claims right to form a government after his Popular Party wins more seats but falls short of a majority in a repeat general election.

2016 October - Opposition Socialists agree to abstain in a parliamentary confidence vote on which will allow acting Prime Minister Mariano Rajoy to form a minority government and end 10 months of political deadlock.

2017 March - Former Catalan president Artur Mas is convicted of civil disobedience and banned from holding office for two years, for organising an illegal independence referendum in 2014.

2017 August - Two Islamic State terror attacks kill 16 people in Barcelona and the nearby resort of Cambrils.

2017 October - Madrid imposes direct rule in Catalonia after voters in a referendum back separation from Spain.

2018 May - Basque separatist former armed group Eta announces it is ceasing all political activities.

2018 June - Prime Minister Mariano Rajoy loses a vote of confidence. Opposition leader Pedro Sanchez takes over as premier.