Army
Nigeria's President Muhammadu Buhari replaced the heads of the armed forces on Tuesday as pressure builds over his response to the security situation.
He gave no reasons for the resignation of the army, navy and air force commanders, who he appointed in 2016.
But he tweeted the names of the replacements.
Governors and the National Assembly had called on Buhari to replace the military chiefs as they said they were underperforming.
Buhari, a former army general, was elected on a pledge to end insurgency in the northeast of the country, where the Islamist group Boko Haram operates.
While in the northwest, kidnappers are active.
In December some 300 schoolboys were kidnapped and later returned to their home. Authorities said local bandits were responsible.
In central regions, clashes between farmers and cattle herders have worsened.
The Boko haram insurgency has long plagued the country and put pressure on the government as security issues mount.
Large parts of the country are out of government control and an offshoot of Boko Haram - the Islamic State in West Africa Province group- has become even deadlier in the northeast.
Since 2009, at least 36,000 people have been killed in armed conflicts and millions have been displaced.
The violence has spread to neighbouring Niger, Chad and Cameroon.
00:51
Ex-OPEC president Diezani Alison-Madueke cleared of bribery in UK trial
01:16
Central African Republic army denies coup rumours
01:20
Nigeria says nearly 10,000 former Boko Haram fighters have been reintegrated
01:02
Grief and questions: Adichie accuses Hospital of obstructing inquest
01:35
Protesters denounce insecurity as police disperse march in Abuja
Go to video
Nigeria 'neutralised' 13,000 'terrorists' in past year, according to President