Maroto was appointed by Prime Minister Pedro Sánchez to integrate his new Council of Ministers, following the motion of censure that the PSOE presented against the previous government of Mariano Rajoy (PP) and that was approved by the Congress of Deputies on 1 June 2018. Felipe VI sanctioned her appointment as holder of the portfolio of Industry, Commerce and Tourism by royal decree, becoming the first woman to held the post. On 7 June she took office as Minister before the King at Palace of Zarzuela.