The Nigerian army has retaken the north-eastern town of Baga, held by Boko Haram militants since 3 January.
In a tweet from its official account, the army said that "mopping up" operations were continuing.
It also claimed in a separate statement that it had killed many Boko Haram militants, though this has not been independently verified.
Nigeria says 150 people died when Boko Haram took Baga and nearby Doron Baga, but locals said up to 2,000 died.
Residents were left largely undefended as the military deserted when the jihadists attacked the towns.
This time, the army claims it was the militants who fled, with some drowning in Lake Chad as they tried to escape the aerial bombardment.
It added that 1,000 mines had been laid in Baga, which soldiers had to negotiate before entering.
The BBC's Will Ross in the Nigerian capital, Abuja, say other sources have confirmed that Boko Haram no longer control Baga.
The massacre there is regarded as the worst attack of Boko Haram's six-year insurgency. Thousands fled across Lake Chad when the assault began with 7,000 taking refuge in the Chadian town of Ngouboua.
Boko Haram, which controls of much of Nigeria's north-east, has killed thousands of people in its drive to establish an Islamic state.
In recent months it has also carried out cross-border raids in neighbouring Chad, Cameroon and Niger, attacking villages and military bases.
All three countries have joined Nigeria to form a military coalition against the Islamist militants.
Also on Saturday, Niger's army reported the deaths of 15 Boko Haram militants following clashes in an island on the Niger side of Lake Chad.
Seven Niger soldiers and one civilian also died in the attack.
It is not yet clear whether other armies were involved in the recapture of Baga. However, the Chadian army spokesperson said there had been no involvement from his country's troops.
Chad has been carrying out attacks against Boko Haram deep inside Nigeria.
The Nigerian army has been criticised by its failure to tackle the militant group, although it has recaptured some territory in recent weeks.
Last week, Nigeria retook the north-eastern towns of Monguno and Marte from the group.
Earlier this month, presidential elections were delayed for six weeks over security concerns.
The electoral commission said it made the decision after the security agencies advised there would not be enough troops available to guarantee the safety of voters.
President Goodluck Jonathan says the election will take place on 28 March. However, opponents say they fear Mr Jonathan, who is running for a second term, will use the delay to hold on to power.
Latest Stories
-
Zirkzee scores winning penalty as 10-man Manchester United knock out Arsenal from FA Cup
33 minutes -
George Quaye tips Dzifa Gomashie for Tourism Minister position
40 minutes -
MTN FA Cup: Kotoko beat Accerler8z to book last 16 spot
43 minutes -
Free SHS and the NDC’s dilemma: A look into the future
1 hour -
NIB D-G bought state lands at Cantoments for ¢160k – Documents reveal
1 hour -
Dr Arthur Kennedy: A reset for Ghana
2 hours -
Teacher trainees call for resolution of strikes before colleges reopen
3 hours -
National Prayer and Thanksgiving Service to be held today at UPSA
3 hours -
‘Take the naughty, stealing taxes away’ – E.P Church Moderator to President Mahama
3 hours -
Employee Assistance Programmes: The heartbeat of a 24-Hour economy
3 hours -
Atebubu drivers attack Police after suspected robbers killed 75-year-old driver
4 hours -
Ejura Death: Family rejects autopsy report, alleges police brutality
4 hours -
Paramount Chief of Wenchi instructs illegal miners to stop operating in the area
4 hours -
AGRA Board Chair urges partners and MPs to support Ghana’s food systems transformation efforts
7 hours -
Sissala East constituents urge Mahama to recover looted state funds
7 hours