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
-
MoE is not changing uniforms or re-painting all public schools – Kwasi Kwarteng clarifies
28 mins -
16th Africa Aquatics Swimming Championships: Nubia and Harry to represent Ghana in Angola
34 mins -
Four defendants in NDA case by OSP open defence today
35 mins -
GFA commissions first set of floodlights at Ghanaman Soccer Centre of Excellence
41 mins -
Basic public school uniform change an initiative, not a policy – Kwasi Kwarteng
43 mins -
Bawumia appeals for peace in Gonjaland, donates GHȼ100K, bull
49 mins -
Drake: AI Tupac track gone from rapper’s Instagram after legal row
1 hour -
Repainting schools, changing uniforms a misplaced priority – Joy FM listeners on rebranding of basic public schools
1 hour -
UEFA U-16 Tournament: Black Starlets bounce back with 5-1 win over Serbia
1 hour -
There’s nothing strange about changing colours for basic public schools – Education Ministry PRO
2 hours -
Diana Asamoah causes arrest of personal assistant over GH₵4k MoMo theft
2 hours -
Adina impresses fans with new single ‘Emergency’
2 hours -
Our mindset should breed excellence – Ace Ankomah
2 hours -
SML fully delivered on Transaction Audit Service Agreement with GRA
2 hours -
Government trying to hide something from SML/GRA contract – Arthur Kennedy
2 hours