Spain is a parliamentary monarchy, and Article 1.3 of its Constitution of 1978 uses exactly that phrase. King Felipe VI has been head of state since 19 June 2014. Pedro Sánchez of the Spanish Socialist Workers' Party (PSOE) has been prime minister, officially President of the Government, since 2 June 2018, and began his third term on 17 November 2023. Laws are made by the Cortes Generales, a two-chamber parliament with 350 deputies in the Congress of Deputies and 266 senators. A Constitutional Court of twelve justices decides whether laws comply with the constitution. Much of the country's day-to-day government is handled by 17 autonomous communities and the two autonomous cities of Ceuta and Melilla. Voters approved the constitution in a referendum on 6 December 1978, three years after the death of the dictator Francisco Franco, and it is the product of more than 160 years of earlier constitutions, coups and a civil war.
Today's system is the latest stage of that history. The sections below follow it in order, from the first constitution in Cádiz to the current parliament.
1812: The Constitution of Cádiz
Spain's constitutional story begins during the Napoleonic occupation. The Cortes of Cádiz drafted it while besieged by French troops, first on the Isla de León (now San Fernando) and then inside the Andalusian port of Cádiz. It was the first Spanish legislature to include delegates from the whole nation and its overseas possessions, including Spanish America and the Philippines. On 19 March 1812 it ratified the Political Constitution of the Spanish Monarchy. Spaniards nicknamed it "La Pepa". It was one of the earliest codified constitutions anywhere. It set up national sovereignty and a constitutional monarchy, though it kept Roman Catholicism as the only legal religion. It also became a model for liberals across Spanish America.
Like several constitutions after it, La Pepa did not last. Over the 19th century Spain went through a series of constitutions that each new government replaced.
1876 to 1923: The Restoration constitution
After the brief First Republic, the Bourbon monarchy was restored, and a conservative constitution took effect on 30 June 1876. Under the system known as el turno pacífico, the Conservative and Liberal parties took turns in office, often helped by electoral fraud. It lasted until General Miguel Primo de Rivera seized power in a coup in 1923, with the support of King Alfonso XIII. Its 47 years in force made the 1876 text the longest-lasting constitution in Spanish history, a record the 1978 Constitution has since overtaken.
1931 to 1939: The Second Republic
The dictatorship and the monarchy that had backed it both fell. The Second Spanish Republic was proclaimed on 14 April 1931, and a Constituent Assembly approved its constitution on 9 December 1931. The text created a secular democracy with equal rights for all citizens. It allowed regional autonomy and introduced votes for women, civil marriage and divorce. It also allowed the state to expropriate private property, with compensation, for reasons of social utility. Both the head of state and the head of government were chosen democratically, something that had rarely happened in Spain before.
The Republic's reforms deeply divided the country. In July 1936 a military uprising began the Spanish Civil War, and the 1931 Constitution remained formally in force until the Republic's defeat on 1 April 1939.
1939 to 1975: Franco's Spanish State
General Francisco Franco ruled the officially named Spanish State as a dictator for nearly four decades. There was no constitution in the democratic sense. Instead the regime governed through "Fundamental Laws of the Realm", of which there were eight by 1977, the last passed after Franco's death. The most important for what came later was the fifth, the Law of Succession to the Headship of the State. It was approved by Franco's Cortes on 7 June 1947 and by a referendum on 6 July 1947. The law declared Spain a kingdom again, made Franco head of state for life, and gave him the power to name a royal successor.
Franco passed over Juan de Borbón, son of Alfonso XIII, whom he considered too liberal. In 1969 he named Juan's son, Juan Carlos, as "Prince of Spain" and his successor, and the Cortes ratified the choice on 22 July 1969. Franco died on 20 November 1975. Two days later, on 22 November, the Cortes proclaimed Juan Carlos I king, inside the institutions of the dictatorship.
1975 to 1977: The Transition and the first free election
The democratic transition, known in Spain as la Transición, reformed Franco's system using its own legal rules. Torcuato Fernández-Miranda, President of the Cortes, drafted a Political Reform Law, and the Francoist Cortes approved it on 18 November 1976, in effect voting to abolish itself. In a referendum on 15 December 1976, 97.4% of valid votes supported it, on a turnout of 77.7%. On 15 June 1977, Spain held its first free general election since 1936, for all 350 seats in the Congress and 207 in the Senate. Prime Minister Adolfo Suárez's Union of the Democratic Centre (UCD) won the most seats. Suárez had built his career in the Franco regime's Movimiento Nacional, and the King had appointed him prime minister in July 1976. Before the vote he legalised all political parties, including the Communist Party of Spain, which was a particularly difficult step. After the election he became the first democratically elected prime minister since Juan Negrín of the Second Republic.
1978 to 1981: The Constitution, the autonomies and the 23-F coup
The parliament elected in 1977 acted as a constituent assembly. A panel of seven deputies, the "fathers of the Constitution", wrote the draft. They came from parties as different as the centrist UCD, the conservative People's Alliance, the Socialists, the Catalan nationalists and the Catalan communists. The Cortes approved the text on 31 October 1978. Voters endorsed it on 6 December 1978 with about 92% of valid votes on a turnout of 67%, and 6 December is now Constitution Day, a national holiday. King Juan Carlos signed it on 27 December, and it came into force with its publication on 29 December.
The constitution made Spain "a social and democratic state, subject to the rule of law". It has ten parts, covering fundamental rights, the Crown, the Cortes, the government, relations between government and parliament, the judiciary, the economy, territorial organisation, the Constitutional Court and amendment. The King's role is defined and limited, and justice is administered in his name by independent judges. From Germany's Basic Law it borrowed the constructive vote of no confidence. Under this rule, a prime minister can be removed only if the Congress elects a replacement at the same time.
Part VIII created what Spaniards call the State of the Autonomies. Formally Spain is a unitary state, but in practice it is close to federal. Each region gained its own Statute of Autonomy, beginning with the Basque Country and Catalonia in 1979, and all 17 autonomous communities chose to have one-chamber regional parliaments. The new order soon faced a serious test. On 23 February 1981, Lieutenant-Colonel Antonio Tejero and about 200 armed Civil Guards stormed the Congress during the vote to install Leopoldo Calvo-Sotelo as prime minister. Juan Carlos's televised opposition helped defeat the coup, known as 23-F, which was the last serious attempt to restore Francoism.
2014 to today: Felipe VI, Pedro Sánchez and the 15th Cortes
The 1978 Constitution has been amended only three times: in 1992 (Article 13, so that citizens of other EU countries could vote and stand in local elections under the Maastricht Treaty), in 2011 (Article 135, which added a balanced-budget rule and debt brake) and in January 2024 (Article 49, replacing the word for "handicapped" with "persons with disabilities"). Its institutions, however, have changed hands many times. Juan Carlos abdicated in 2014. The Congress of Deputies passed the organic law needed for the abdication by 299 votes to 19, with 23 abstentions, and Felipe VI was proclaimed king on 19 June 2014.
Executive power belongs to the Government, made up of the prime minister, deputy prime ministers and ministers. Members of both chambers of the Cortes serve four-year terms, and the 50 provinces serve as constituencies. Deputies are elected by proportional representation, and some senators are chosen by the regional parliaments. Since the 1990s, the PSOE and the People's Party (PP) have dominated, with Basque and Catalan parties often deciding who governs.
Pedro Sánchez came to power through the constructive no-confidence procedure. On 1 June 2018 the Congress passed a PSOE motion against Mariano Rajoy of the PP, and the King appointed Sánchez the next day. His government formed with Unidas Podemos in January 2020 was Spain's first nationwide coalition since the Second Republic. Sánchez called a snap election for 23 July 2023. The PP came first but could not reach a majority, and Alberto Núñez Feijóo of the PP lost an investiture vote in September.
With the support of the left-wing Sumar alliance and several regionalist and pro-independence parties, the Congress re-elected Sánchez on 16 November 2023. Part of the price for Catalan support was an amnesty for people prosecuted over the Catalan independence campaign of 2011 to 2023. It became Organic Law 1/2024 of 10 June 2024. The arrangement shows how the system now works: a fragmented Congress, minority or coalition governments, and regional parties in a strong position to bargain.
To see how the regional tier fits on the map, read our guide to Spain's autonomous communities and the capitals of Spain's regions. For the city that holds the Congress, the Senate and the royal palace, see Madrid, the capital of Spain.