After the success of the 2018 vote of no confidence in the government of Mariano Rajoy, Pedro Sánchez was elected Prime Minister of Spain and the Leader (Spokesperson) of the Socialist Group in the Congress of Deputies Margarita Robles was appointed Minister of Defence, promoting Lastra to that position, becoming the youngest person and the third woman to occupy this position in the history of the Socialist Party.