Somali government troops backed by African Union forces have captured a key stronghold of al-Shabab Islamists, local officials say.
The regional governor told the BBC that he was in the centre of Barawe, about 200km (125 miles) south of Mogadishu.
The government now controls all the seaports along the coast of Somalia, blocking off supply lines.
The AU says al-Shabab, who had held the town for six years, used it as a base to launch attacks on the capital.
Residents said many of the al-Qaeda-aligned militants had begun withdrawing from the key port town on Friday.
"The situation is calm, the militiamen had fled before the forces reached the town," regional governor Abdukadir Mohamed Nur said.
Al-Shabab has lost control of several towns in the past month, but still controls large swathes of territory in rural areas.
The BBC's Emmanuel Igunza says the news is a significant blow to al-Shabab because they had used Barawe as a supply route for weapons and food and as a base for a lucrative charcoal business.
The loss of Barawe comes a month after al-Shabab's leader, Ahmed Abdi Godane, was killed by a US air strike near the town. US strikes have also targeted other senior militants in and around Barawe.
The group, which is estimated to have at least 5,000 fighters, wants to overthrow the UN-backed Somali government and has imposed a strict version of Sharia in areas under its control.
Last week, a woman was stoned to death in Barawe for alleged adultery.
Correspondents say al-Shabab tends to tactically withdraw from areas when faced with a large offensive, but leaves some fighters within the civilian population to launch attacks later.
Latest Stories
-
Two convicted for human trafficking
49 minutes -
3 alleged Indian gold smugglers remanded in custody
1 hour -
Labourer remanded for theft of retired lecturer’s items
1 hour -
Philippines condemns killing of veteran journalist
1 hour -
Meghan uses ‘HRH’ title but denies breaking rules
2 hours -
We have to do something special in Paris – Arteta
2 hours -
Malta’s golden passport scheme breaks EU law, top court rules
2 hours -
Man accused of Kim Kardashian Paris robbery ‘regrets’ $10m heist
2 hours -
CJ suspension: An assembly of lawyers should know better – Srem Sai questions GBA’s legal reasoning
3 hours -
I’ll be sad if Mahama fails galamsey fight – Rev. Charles Owusu
3 hours -
‘Law is not democracy’ – Deputy AG says GBA resolution on CJ suspension as legally meaningless
3 hours -
Ghana can payback debts, says IMF
4 hours -
NPP supporter stabbed by alleged party vigilante over ‘Thank You Tour’ cash
4 hours -
Emmanuel Dzivenu: I went to Egypt, I returned with a mirror for Ghana
5 hours -
Canada will deal with Trump ‘on our terms’, Carney tells BBC
5 hours