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
-
Will Ghana’s democracy stand the test of time in the 2024 elections?
1 hour -
Hindsight: Dreams fairytale run proved one thing; it is possible
2 hours -
God makes rulers, not you; you can’t choose your successor – Mahama to Akufo-Addo
3 hours -
Contributors own SSNIT, they must decide who becomes its Director-General – Austin Gamey
4 hours -
Move away from theory-based learning towards practical learning approaches – AUCC President to students
4 hours -
Haaland scores as Manchester City beat Nottingham Forest
5 hours -
Villas-Boas elected Porto president
6 hours -
Situation on frontline has worsened, Ukraine army chief says
6 hours -
US doctor describes witnessing starvation in northern Gaza
6 hours -
CAFCC: RS Berkane make final after USM Alger refused to play 2nd leg over Moroccans’ jersey
6 hours -
Elon Musk in China to discuss enabling full self driving
6 hours -
PSG clinch Ligue 1 title after Lyon’s win over Monaco
8 hours -
Guinness Ghana sets the pace at Ghana Beverage Awards with six awards
8 hours -
Burkina Faso suspends BBC, VOA radio broadcasts over killings coverage
9 hours -
Nicole Kidman honoured with AFI Life Achievement Award
9 hours