In the 2016 general election he lost to then-Prime Minister Mariano Rajoy. The party of Rajoy had many corruption scandals and because of this a lot of people in Spanish congress voted to quit him from presidency on June 1, 2018 and put Pedro Sánchez in his place. He won elections in April 2019 but he could not organize a goverment. On November 2019 he won other elections and on 7 January 2020 he formed a goverment with the party Unidas Podemos.