He is credited with having planned the 2018 vote of no confidence in the government of Mariano Rajoy. Following the success of the later and the subsequent investiture of Pedro Sánchez as new Prime Minister, he was appointed as Chief of Staff of the Cabinet Office of the Presidency of the Government through a Royal Decree issued on 8 June and published in the "BOE" a day later. He was sworn in on 11 June.