The second government of Pedro Sánchez was formed on 13 January 2020, following the latter's election as prime minister of Spain by the Congress of Deputies on 7 January and his swearing-in on 8 January, as a result of the Spanish Socialist Workers' Party (PSOE) emerging as the largest parliamentary force at the November 2019 general election. It succeeded the first Sánchez government and was the government of Spain from 13 January 2020 to 21 November 2023, a total of days, or .

The cabinet comprised members of the PSOE (including its sister party, the Socialists' Party of Catalonia, PSC) and Unidas Podemos—with the involvement of Podemos, United Left (IU), the Communist Party of Spain (PCE) and Catalonia in Common (CatComú)—as well as independents proposed by both parties, to become the first nationwide coalition government to be formed in Spain since the Second Spanish Republic. It has been alternatively dubbed as the "progressive coalition" (), after the name of the political agreement signed by PSOE and Unidas Podemos. It was automatically dismissed on 24 July 2023 as a consequence of the 2023 general election, but remained in acting capacity until the next government was sworn in.

At 22 ministries, it was the second largest cabinet in Spain since the country's transition to democracy, only behind the third Súarez government; the first time that a government includes four deputy prime ministers; and the third oldest government to be formed, with a median age of 54.2 upon its formation. After the July 2021 cabinet reshuffle, the median age of the government lowered to 50, and the proportion of women at ministerial posts increased to 63.6% (14 out of 22).

Investiture

InvestitureCongress of Deputies Ballot → 5 January 2020 7 January 2020 Required majority → 176 out of 350 Simple Sources

Votes of confidence/no confidence

Motion of no confidenceCongress of Deputies Ballot → 22 October 2020 Required majority → 176 out of 350 Abstentions Absentees Sources

Motion of no confidenceCongress of Deputies Ballot → 22 March 2023 Required majority → 175 out of 349 Sources

Cabinet changes Sánchez's second government saw a number of cabinet changes during its tenure:

On 30 December 2020, it was announced that Salvador Illa would be stepping down as Minister of Health in order to run as the Socialists' Party of Catalonia (PSC)'s leading candidate for President of the Government of Catalonia in the upcoming 2021 Catalan regional election. Minister of Territorial Policy and Civil Service Carolina Darias was proposed to replace him in his post due to her knowledge and cooperation in Illa's ministry's management of the COVID-19 pandemic, whereas outgoing PSC candidate Miquel Iceta was commented as a likely pick for Darias's former ministry. After the surprise announcement on 10 March 2021 by Madrilenian president Isabel Díaz Ayuso to expel Citizens (Cs) from her government and call a snap election in the Community of Madrid for 4 May, as a result of a foiled attempt from both PSOE and Cs to bring down the Murcian government of Fernando López Miras, the second deputy prime minister Pablo Iglesias announced that he would be stepping down in shortly from his cabinet posts in order to run as the Unidas Podemos leading candidate in the regional election. Iglesias pointed to Labour and Social Economy minister Yolanda Díaz as his successor in the Unidas Podemos leadership, whereas State Secretary for the 2030 Agenda, Ione Belarra, would replace him at the helm of the Ministry of Social Rights and 2030 Agenda. Díaz would be appointed as new third deputy prime minister as a way to compensate for her strong labour portfolio, whereas Nadia Calviño was to ascend as new second deputy. On 10 July 2021, Pedro Sánchez unveiled one of the largest cabinet reshuffles in Spanish democracy: seven ministers—Carmen Calvo (First Deputy and Presidency), Arancha González Laya (Foreign Affairs), Juan Carlos Campo (Justice), José Luis Ábalos (Transport), Isabel Celaá (Education), José Manuel Rodríguez Uribes (Culture) and Pedro Duque (Science)—were replaced by new officeholders, with further two ministries (Finance and Territorial Policy) seeing changes in their structures, with civil service competences being transferred from the latter to the former, as well as the office of the spokesperson of the Government. After Calvo's dismissal from the cabinet, the third remaining deputy prime ministers (Nadia Calviño, Yolanda Díaz and Teresa Ribera) were promoted, with the post of the fourth deputy prime minister being disestablished. The changes were effective from 12 July, with the new ministers taking their posts on that day. On 16 December 2021, Manuel Castells announced his will to resign as Ministry of Universities due to health concerns, being replaced in the post on 20 December by Joan Subirats, former councillor in the City Council of Barcelona under mayoress Ada Colau. On 14 and 17 November 2022, Industry and Health ministers Reyes Maroto and Carolina Darias were announced as PSOE candidates for the mayorships of Madrid and Las Palmas de Gran Canaria, respectively. They were both replaced in their posts by Héctor Gómez and José Miñones on 28 March 2023, one week ahead of the official call of the 28 May local elections.

Council of Ministers The Council of Ministers is structured into the offices for the prime minister, the four deputy prime ministers, 22 ministries and the post of the spokesperson of the Government. From July 2021, the Council would include only three deputy prime ministers.

← Sánchez II Government →(13 January 2020 – 21 November 2023) Portfolio Name Party Took office Left office Prime Minister Pedro Sánchez PSOE 8 January 2020 17 November 2023 First Deputy Prime MinisterMinister of the Presidency, Relations with the Cortes and Democratic Memory Carmen Calvo PSOE 13 January 2020 12 July 2021 Second Deputy Prime MinisterMinister of Social Rights and 2030 Agenda Pablo Iglesias UP/Podemos 13 January 2020 31 March 2021 Third Deputy Prime MinisterMinister of Economic Affairs and Digital Transformation Nadia Calviño Independent 13 January 2020 31 March 2021 Fourth Deputy Prime MinisterMinister for the Ecological Transition and the Demographic Challenge Teresa Ribera PSOE 13 January 2020 12 July 2021 Minister of Foreign Affairs, European Union and Cooperation Arancha González Laya Independent 13 January 2020 12 July 2021 Minister of Justice Juan Carlos Campo Independent 13 January 2020 12 July 2021 Minister of Defence Margarita Robles Independent 13 January 2020 21 November 2023 Minister of FinanceSpokesperson of the Government María Jesús Montero PSOE 13 January 2020 12 July 2021 Minister of the Interior Fernando Grande-Marlaska Independent 13 January 2020 21 November 2023 Minister of Transport, Mobility and Urban Agenda José Luis Ábalos PSOE 13 January 2020 12 July 2021 Minister of Education and Vocational Training Isabel Celaá PSOE 13 January 2020 12 July 2021 Minister of Labour and Social Economy Yolanda Díaz UP/PCE 13 January 2020 21 November 2023 Minister of Industry, Trade and Tourism Reyes Maroto PSOE 13 January 2020 28 March 2023 Minister of Agriculture, Fisheries and Food Luis Planas PSOE 13 January 2020 21 November 2023 Minister of Territorial Policy and Civil Service Carolina Darias PSOE 13 January 2020 27 January 2021 Minister of Culture and Sports José Manuel Rodríguez Uribes PSOE 13 January 2020 12 July 2021 Minister of Health Salvador Illa PSOE/PSC 13 January 2020 27 January 2021 Minister of Science and Innovation Pedro Duque Independent 13 January 2020 12 July 2021 Minister of Equality Irene Montero UP/Podemos 13 January 2020 21 November 2023 Minister of Consumer Affairs Alberto Garzón UP/IU 13 January 2020 21 November 2023 Minister of Inclusion, Social Security and Migration José Luis Escrivá Independent 13 January 2020 21 November 2023 Minister of Universities Manuel Castells Independent 13 January 2020 20 December 2021 Changes January 2021 Portfolio Name Party Took office Left office Minister of Territorial Policy and Civil Service Miquel Iceta PSOE/PSC 27 January 2021 12 July 2021 Minister of Health Carolina Darias PSOE 27 January 2021 28 March 2023 Changes March 2021 Portfolio Name Party Took office Left office Second Deputy Prime MinisterMinister of Economic Affairs and Digital Transformation Nadia Calviño Independent 31 March 2021 12 July 2021 Third Deputy Prime MinisterMinister of Labour and Social Economy Yolanda Díaz UP/PCE 31 March 2021 12 July 2021 Minister of Social Rights and 2030 Agenda Ione Belarra UP/Podemos 31 March 2021 21 November 2023 Changes July 2021 Portfolio Name Party Took office Left office First Deputy Prime MinisterMinister of Economic Affairs and Digital Transformation Nadia Calviño Independent 12 July 2021 21 November 2023 Second Deputy Prime MinisterMinister of Labour and Social Economy Yolanda Díaz UP/PCE 12 July 2021 21 November 2023 Third Deputy Prime MinisterMinister for the Ecological Transition and the Demographic Challenge Teresa Ribera PSOE 12 July 2021 21 November 2023 Minister of Foreign Affairs, European Union and Cooperation José Manuel Albares PSOE 12 July 2021 21 November 2023 Minister of Justice Pilar Llop PSOE 12 July 2021 21 November 2023 Minister of Finance and Civil Service María Jesús Montero PSOE 12 July 2021 21 November 2023 Minister of Transport, Mobility and Urban Agenda Raquel Sánchez PSOE/PSC 12 July 2021 21 November 2023 Minister of Education and Vocational Training Pilar Alegría PSOE 12 July 2021 21 November 2023 Minister of the Presidency, Relations with the Cortes and Democratic Memory Félix Bolaños PSOE 12 July 2021 21 November 2023 Minister of Territorial PolicySpokesperson of the Government Isabel Rodríguez PSOE 12 July 2021 21 November 2023 Minister of Culture and Sports Miquel Iceta PSOE/PSC 12 July 2021 21 November 2023 Minister of Science and Innovation Diana Morant PSOE 12 July 2021 21 November 2023 Changes December 2021 Portfolio Name Party Took office Left office Minister of Universities Joan Subirats UP/CatComú 20 December 2021 21 November 2023 Changes March 2023 Portfolio Name Party Took office Left office Minister of Industry, Trade and Tourism Héctor Gómez PSOE 28 March 2023 21 November 2023 Minister of Health José Miñones PSOE 28 March 2023 21 November 2023

Departmental structure Pedro Sánchez's second government is organised into several superior and governing units, whose number, powers and hierarchical structure may vary depending on the ministerial department.

Unit/body rank () Secretary of state () Undersecretary () Director-general () Autonomous agency () Military & intelligence agency