In May 2018 the Audiencia Nacional declared the PP as guilty part "on a lucrative basis" in the Gürtel corruption scheme, understanding the organization profited from the corruption scheme "to the detriment of the State's interests". This led to a motion of no confidence to the prime minister Mariano Rajoy, led by socialist leader Pedro Sánchez, which eventually succeeded, thus forcing Rajoy to quit his position, and ultimately resign as the party's leader. His substitute would be determined in July 2018.