He was appointed top fiscal of Catalonia in July 2013, after the Attorney General of the State forced to resign Martín Rodríguez Sol because he defended the celebration of the 2014 Catalan self-determination referendum.