Somalia is facing a fresh test of its stability as foreign troops begin withdrawing, funding for its security forces comes under pressure and a bitter political dispute threatens to derail plans for the country's first direct democratic elections in decades.
The combination of challenges has raised questions about whether the government can defend itself against Islamist militant group al-Shabab while managing growing divisions among political factions.
Some analysts fear the situation could embolden al-Shabab, which is affiliated with al-Qaeda, and potentially allow it to seize control of the capital, Mogadishu.
The group already controls large parts of the country despite the presence of about 12,000 African Union (AU) troops supporting the government.
The withdrawal of foreign forces, alongside the activities of clan-based militias aligned with rival political factions, has heightened concerns about the government's ability to maintain control.
Ugandan troops, who make up the largest contingent of the AU force, began withdrawing last month, with the country expected to complete its withdrawal by next year.
Ethiopia, another major contributor to the AU mission, is also reportedly planning to withdraw about 3,000 troops. The country has 2,500 troops authorised under the AU mission and roughly 5,000 under a bilateral agreement with Somalia. It is not clear whether the reported withdrawals would be from the AU contingent, the bilateral force, or both.