On 1 June 2018, the PSOE called a vote of no confidence in Prime Minister Mariano Rajoy, successfully passing the motion after winning the support of Unidas Podemos, as well as various regionalist and nationalist parties. Sánchez was subsequently sworn in as Prime Minister by King Felipe VI the following day. He went on to lead the PSOE to gain 38 seats in the April 2019 general election, the PSOE's first national victory since 2008, although they fell short of a majority. After talks to form a government failed, Sánchez again won the most votes at the November 2019 general election, and in January 2020 he formed a coalition government with Unidas Podemos, the first national coalition government since the country's return to democracy.