Malami served as Attorney-General and Minister of Justice from 2015 to 2023 under the administration of former President Muhammadu Buhari.