Niger army chief,Ahmed Mohamed has been fired by President Mahamadou Issoufou after two deadliest attacks killed at least 160 soldiers in the country.
Mohamed led the army for over two years, a period marked by a steep rise in attacks by militants linked to Islamic State and al Qaeda.
This had culminated in a daytime raid on a remote army base on Thursday that killed at least 89 soldiers.
That attack came on an outpost less than a month after another which killed 71 soldiers and raised questions about Niger’s ability to contain the spread of militant groups from Mali and Burkina Faso across its western border.
Maj.-Gen. Salifou Modi was appointed 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.
Military campaigns by armies in the Sahel, a semi-arid swathe of land beneath the Sahara, have also been marred by human rights abuses, which analysts say have pushed some civilians into the arms of the militants.
In addition to the militants attacks, countries in the region, especially Mali and Burkina Faso, have struggled to cope with deadly ethnic clashes between rival farming and herding communities.