Third term
In 2023, after the PSOE suffered heavy losses in a series of regional and local elections across Spain with the PP and Vox winning a large number of seats, Sánchez surprised many by announcing a snap general election for 23 July. In a speech confirming the election, Sánchez stated that it was important to listen to the will of the people, but stressed the need to persevere with post-COVID economic recovery measures implemented by his government, and that he would seek to prevent the formation a PP-Vox Government.
At the election, the PP gained 48 seats, finishing first, but the PSOE gained one seat, and Vox lost over one third of its seats; this meant that PP leader Alberto Núñez Feijóo was not able to form a government. After the Congress of Deputies formally rejected Feijóo's bid to be invested in September 2023, King Felipe VI appointed Sánchez to form a government. After obtaining the support of the left-wing Sumar alliance, as well as a series of pro-independence and regionalist political parties, the Congress of Deputies re-elected Sánchez as Prime Minister on 16 November 2023; he was formally appointed to a third term on 17 November 2023.
Following weeks of political tensions, which saw Sánchez accepting an amnesty law for Catalan pro-independence politicians convicted or investigated for events related to the 2017–2018 Spanish constitutional crisis and the 2019 Catalan protests, he was able to secure enough support to be re-elected as prime minister by an absolute majority on 16 November 2023. Sánchez's re-election and amnesty law proposal sparked protests.
Sánchez has been supportive of legal immigration to Spain as a way to foster economic growth and sustaining the country's welfare state. On 9 October 2024, Sánchez urged the European Parliament to speed up the implementation of the New Pact on Migration and Asylum to alleviate the migration crisis in the Canary Islands, which had seen the illegal arrival of a record number of 46,843 migrants, mostly from Senegal, Mali and Morocco (up from 39,910 in 2023). Sánchez tried to push through a law that would introduce mandatory distribution of migrants among Spanish regions to alleviate pressure in the Canary Islands. The Sánchez government aimed to legalize approximately 900,000 undocumented migrants by 2027.
In January 2026, Sánchez authorized a royal decree aimed at regularizing approximately 500,000 undocumented immigrants residing in Spain. The move has been criticized by the opposition as undemocratic. Spain's immigration policy, which contrasts with other advanced European nations, contributed to its becoming the world's fastest growing advanced economy. However, the influx in immigration has put pressure on housing costs and infrastructure in urban areas. Sánchez's government has sought to remedy this by enticing immigrants to move to rural areas whose economies cannot be sustained due to population loss. On July 2026, almost 1.2 million of Spain's undocumented migrants appled for legal status. More than twice the expected number of 500,000.
In July 2026, 72,000 Moroccan migrants stormed the beaches of Cueta, Spain. Sanchez was criticized for the slow response and the ease to which Spanish resources were overwhelmed. In response Italy temporarily reimposed border controls on Spain usually non-existent for countries in the free travel Schengen zone. Months after the incident, thousands of migrants remained on Spanish soil.
On 3 November 2024, Sánchez, King Felipe, Queen Letizia and Valencian president Carlos Mazón were violently confronted during a meeting with people affected by the October 2024 Spain floods in Paiporta in the Valencian Community, who threw mud and objects at them and injured two bodyguards.On 18 January 2026, Sánchez cancelled his planned trip to the World Economic Forum in Davos to visit the site of a fatal train collision in Adamuz, southern Spain, which resulted in more than 40 deaths. On 3 February 2026, Sánchez announced at the World Governments Summit in Dubai plans to prohibit users under the age of 16 from accessing social media platforms. On 5 October 2026 Sanchez has dissolved parliament and called an early election to take place on Sunday, 29 November 2026.
Sánchez criticized Israel's actions in the Gaza Strip during the Gaza war. He promised to "work in Europe and in Spain to recognise the Palestinian state". Along with Leo Varadkar of Ireland, he has been widely recognized as one of the most pro-Palestine voices and critics with the Israeli actions within the European Union. Spain officially recognized the State of Palestine on 28 May 2024, with the borders established in 1967, in coordination with Ireland and Norway. On 6 June 2024 Spain joined South Africa's genocide case against Israel. Speaking at the Washington summit in July 2024, Sánchez urged NATO members to avoid "double standards" regarding the wars in Ukraine and Gaza, saying, "If we demand respect for international law in Ukraine, we must demand it in Gaza as well."
Spain's Congress of Deputies recognized Edmundo González as the winner of the 2024 Venezuelan presidential election. Sánchez said he would recognise neither Nicolás Maduro nor Edmundo González as the winner and would look for a solution to the dispute using diplomacy.
In May 2025, Sánchez called Israel a "genocidal state" and said that Spain "does not do business" with such a country. In September 2025, he remarked: "Spain does not have nuclear bombs. We cannot stop the Israeli offensive alone, but we will not stop trying". On 4 January 2026, Sánchez condemned the US military intervention in Venezuela, during which President Nicolás Maduro was captured. While affirming that Spain did not recognize Maduro's regime as legitimate, he characterized the intervention as a dangerous precedent and a violation of international law. He has been outspoken in criticizing the United States and Israel in the 2026 Iran war from early on, unlike many other European leaders who have "tried to assuage Trump with a combination of flattery and accommodation". He said the US and Israeli strikes were "reckless and illegal". He said it was "curious" that Russia and the United States are permanent members of the Security Council despite "bringing a lot of instability to the world with the wars in Ukraine and also in Iran".
Sánchez has a dispute with the United States regarding the US demand that NATO members increase their defence spending from 2% to 5% of GDP. In October 2025, Trump suggested that Spain should be thrown out of NATO over that issue. Sánchez said the higher target was "incompatible with our welfare state and our world vision".
The Koldo Case is a significant corruption scandal in Spain that emerged in early 2024, involving allegations of illegal commissions related to COVID-19 mask procurement contracts. The scandal has notably impacted Pedro Sánchez's government, with prominent figures such as former Transport Minister José Luis Ábalos and his aide Koldo García facing trial and detention on charges including bribery, embezzlement, and racketeering. The case has also been linked to other controversies, such as the "Delcygate" scandal and investigations into Sánchez's wife, Begoña Gómez, and his brother.
On 24 April 2024, due to a court investigation of his wife, Begoña Gómez, for alleged influence peddling charges presented by Manos Limpias, a far-right proxy trade union, Sánchez announced through a letter in the X social network that he was considering his resignation from the position of prime minister, citing a right-wing media offensive to wear him down. Several media outlets noted how Manos Limpias' charges against Sánchez's wife were based on press headlines and fake news, a fact that the trade union acknowledged as possible. On 26 April 2024 and in a joint investigation, elDiario.es, El País and La Vanguardia newspapers revealed a plot by the PP, dating back to Mariano Rajoy's government in 2014, to spy and produce information on Sánchez's and Gómez's relatives to "politically kill him" by using Manos Limpias to present criminal charges. On 27 April, thousands gathered outside the PSOE's headquarters in Calle Ferraz, Madrid, in an effort to persuade Sánchez not to resign. The case has drawn comparisons to António Costa's resignation in Portugal over the Operation Influencer investigation, which attracted criticism for several mistakes. On 29 April, Sánchez announced that he would not be resigning despite a "harassment and bullying operation" and that he would be fighting "even harder" as prime minister.
As a result of Manos Limpias' complaint, Gómez has been under investigation for alleged crimes of influence peddling and corruption in business, with the judge, Juan Carlos Peinado, deciding during the 2024 European Parliament election campaign—and without waiting to take testimony from witnesses—to call her to testify on 5 July 2024, though this was later postponed to 19 July. She invoked her right not to testify. Sánchez replied by accusing opposition leaders Alberto Núñez Feijóo and Santiago Abascal of trying to influence the outcome of the European Parliament elections on 9 June by using his wife's situation against him, while claiming that the unwritten rule of not issuing judicial resolutions that could affect the normal development of an electoral campaign and the vote had not been followed this time. Through a new ruling, judge Peinado replied to Sánchez by arguing that there was no law in Spain preventing him from continuing his investigation during the electoral period; this was promptly criticized by the Spanish government, which responded that "rulings are not to attack anyone".
On 15 July 2024, businessman Juan Carlos Barrabés testified and stated that Begoña Gómez had met with him up to eight times at the Palace of Moncloa, the prime minister's official residence and workplace. Pedro Sánchez was said to be also present at two of these meetings, but no other details were offered other than his presence in one of them being a brief "greeting" and another one being in the context of a round of meetings with innovation businessmen. On 22 July, the judge summoned Pedro Sánchez to testify as a witness, but he exercised his right not to testify as the husband of the person under investigation. Vox denounced Pedro Sánchez and the Minister of Justice for using the State Attorney's Office against the judge investigating his wife; as of November 2024, the Supreme Court accumulated the complaints of Vox, Hazte Oir and Iustitia Europa against Sánchez and her wife before deciding whether to investigate them or not. On 13 April 2026, Gómez was formally charged with embezzlement, influence peddling, corruption in business dealings and misappropriation of funds.
In 2025, Sánchez's Spanish Socialist Workers' Party (PSOE) was embroiled in a series of sexual misconduct allegations that significantly undermined its feminist image and adversely affected its electoral support. The scandal intensified in July 2025 when Francisco Salazar, a close advisor to Sánchez and a senior party official at the Moncloa Palace, resigned following allegations of sexual harassment by female employees. By December 2025, further allegations emerged involving multiple other party members, including the party leader in Torremolinos, the mayor of Belalcázar, the party's deputy secretary in the province of Valencia, and the president of the province of Lugo. At his year-end press conference on 15 December 2025, Sánchez was accused of downplaying the impact of corruption and sexual misconduct allegations within the PSOE and his government, while insisting he would complete his term through 2027.
In 2020, the aircraft of Venezuelan vice-president Delcy Rodríguez landed at Madrid airport. The event was controversial because EU sanctions prohibited her from entering the EU. During the 81st Session of the United Nations General Assembly, Rodríguez spoke with Sánchez. According to Venezuelan dissident media outlet EVTV, Sanchez' government and the Venezuelan government of Nicolás Maduro maintained a direct channel of confidential communication.