Kenya's President Uhuru Kenyatta has accepted the resignation of the attorney-general, announcing his decision in a tweet:
Uhuru Kenyatta UKenyatta
I have received with regret the resignation of Attorney General Prof. Githu Muigai. I thank him for his service for… twitter.com/i/web/status/9…
11:51 a.m. - 13 February 2018
Mr Muigai's resignation comes after the government ignored several court orders in recent weeks.
Ahead of the 30 January mock inauguration of opposition leader Raila Odinga as the self-declared "people's president", the government took several Kenyan TV stations off air to prevent them broadcasting the ceremony.
It then ignored court requests to reinstate the channels.
It also ignored a judicial order to release one of Mr Odinga's supporters, Miguna Miguna, on bail. Mr Muigai was appointed by former President Mwai Kibaki in 2011. He has twice appeared as a friend of the court in petitions challenging Mr Kenyatta's 2017 election.