Many areas in the three north-eastern states worst-affected by the insurgency - Borno, Yobe and Adamawa - have been liberated from the militants who have killed thousands of people.
But Interior Minister Abdulrahan Dambazau's claim, that the six-year war against Boko Haram has been "fought and won", seems premature.
Even though Boko Haram's capacity to launch big attacks has diminished, it still has fighters capable of carrying out surprise attacks in Nigeria and neighbouring states.
Early in June, Boko Haram attacked Bosso in Niger, killing 32 Nigerien soldiers and two Nigerian soldiers.
The attack in Bosso forced many people to move into cramped camps in Diffa town, on the border of the two countries.
Many aid workers and refugees living in camps in Nigeria's north-eastern Maiduguri city - the headquarters of the military operation against Boko Haram - say they are still afraid of going back to towns and villages raided by the militants.
So, the government has to do more to convince people that Boko Haram is no longer a threat.