Thirteen Somali soldiers were killed after clashes broke out between al-Shabab fighters and the transitional government troops in Mogadishu’s southern districts of Hawlwadig and Hodan late on Wednesday.
The skirmishes continued till dawn, a Press TV correspondent reported on Thursday.
At least 12 civilians were also killed and 37 people, among them government troops, were injured as the two sides exchanged mortar rounds during the fighting.
Somali ambulance workers ferried those wounded to the capital’s Medina hospital.
Somalia has not had a functioning government since 1991, when warlords overthrew former dictator Mohamed Siad Barre.
Up to one million people have been killed following years of fighting between rival warlords and because of an inability to deal with famine and disease.
There are more than 1.4 million internally displaced persons (IDPs) in Somalia. More than 300,000 IDPs have been sheltering in Mogadishu alone.
Most of the displaced live in poor and degrading conditions at makeshift sites in southern and central Somalia, according to the United Nations High Commissioner for Refugees.