Previously, she served as Attorney General of Spain between January 2015 and November 2016, being the first woman to hold this position.
[4] After the resignation of Attorney General Eduardo Torres-Dulce in December 2014, Madrigal was nominated as his replacement.
In September 2016, at the opening of the legal year, she devoted part of her speech to the fight against corruption[6] and to denounce "the total disregard for the constitutional order" demonstrated by the pro-independence sectors in the autonomous community of Catalonia.
[7] After that, she returned to her ordinary position within the Prosecution Ministry as Supreme Court' prosecutor.
She is one of the Supreme Court's prosecutors responsible for the trial of Catalan independence leaders.