This had culminated in a daytime raid on a remote army base on Thursday that killed at least 89 soldiers. This is after another attack less than a month ago killed another 71 soldiers and raised questions about Niger’s ability to contain the spread of militant groups across its western border from Mali and Burkina Faso.
Salifou Modi, a major general, was appointed as Mr Mohamed’s successor on Monday, the government announced after a cabinet meeting.
Niger said it would launch a new military offensive against militants, but past campaigns have failed to curb violence in spite of the presence of French and American troops.
Attacks in Niger have raised fourfold over the past year, killing more than 400 people, according to the Armed Conflict Location and Event Data Project, a non-profit research organisation.
It remains to be seen if this change will bear any fruit.