The current prime minister is Pedro Sánchez , who took office on 2 June 2018 . He is the leader of the Socialist Workers ' Party , the second biggest party in the Cortes Generales . Sánchez was appointed to lead the Government through a motion of no confidence against former prime minister Mariano Rajoy , who had filled that office since 2011 . This was the first election of a prime minister via motion of no confidence in Spanish history
motion of no confidence
2018 vote of no confidence in the government of Mariano Rajoy
Government of Spain