The new Spanish Prime Minister, Pedro Sánchez, following the motion of censure that the PSOE tabled against the previous government of Mariano Rajoy (PP) and that was carried on 1 June 2018, appointed her as Minister in the new Spanish government. Felipe VI sanctioned by royal decree her appointment as holder of the portfolio of Minister of Labour, Migrations and Social Security. On 7 June she was sworn into office before the King at Zarzuela Palace.