Answer
Mariano Rajoy served as Prime Minister of Spain from 2011 to 2018. He succeeded José Luis Rodríguez Zapatero, who had held the position since 2004. Rajoy's tenure was marked by austerity measures in response to the economic crisis in Spain. In 2018, a motion of no confidence led to his removal from office and the installation of Pedro Sánchez as the new Prime Minister.