In March 2018, he was appointed Minister of Economy, Industry and Competitiveness by Prime Minister Rajoy. He was forced out of office after the approval of the motion of no-confidence in the Rajoy's government.