On 1 June 2018, in Spain, the government of Mariano Rajoy was ousted after a motion of no confidence passed 180–169 after the sentence of the Gürtel corruption scandal, which involved the ruling party. Pedro Sánchez was sworn in as the new Spanish prime minister. That was the first time in the history of Spain that a vote of no confidence resulted in a change of government.