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.[5] Felipe VI sanctioned by royal decree of June her appointment as holder of the portfolio of Minister of Labour, Migrations and Social Security.[6] On 7 June she was sworn into office before the King at Zarzuela Palace.[7][8]