Uganda’s Planned Exit Exposes Somalia’s Dangerous Military Vacuum

Uganda’s Planned Exit Exposes Somalia’s Dangerous Military Vacuum

Mogadishu (WDN) — Somalia is facing a potentially decisive security test: can its government build a national military capable of replacing the foreign forces that have carried much of the burden of the country’s fight against Al-Shabaab?

Uganda’s military chief, Gen. Muhoozi Kainerugaba, has announced that Uganda intends to withdraw all its troops from Somalia by August 1, 2027, declaring that no Ugandan People’s Defence Force (UPDF) personnel will remain in the country after that date.

“We are completely leaving Somalia on August 1, 2027. There will be no UPDF troops in Somalia after that day,” Kainerugaba said in a post on X on August 28, 2026.

Uganda has maintained troops in Somalia since 2007 and has been one of the most important contributors to international security operations against Al-Shabaab. If the announced withdrawal is implemented, it would represent a major blow to Somalia’s security architecture and place enormous pressure on the Somali government to fill the resulting military gap. The announcement also comes at a particularly troubling moment for Somalia.

Rather than focusing national political energy on building a professional, adequately equipped and financially sustainable national army, President Hassan Sheikh Mohamud and opposition leaders remain immersed in seemingly endless negotiations over the electoral system, the electoral commission and even the Constitution.

The political dispute is consuming enormous attention at precisely the moment when Somalia should be preparing for the consequences of a shrinking international military presence.

Uganda’s announcement should be treated as a warning rather than a distant deadline. Somalia has depended on international military support for nearly two decades. The gradual reduction of foreign forces means the country can no longer assume that external partners will indefinitely provide the troops, logistics, intelligence, air support and operational capabilities required to contain Al-Shabaab. The fundamental question is whether Mogadishu has a credible transition plan.

Building an army capable of replacing foreign forces requires far more than recruiting additional soldiers. Somalia needs reliable financing, regular salaries, professional command structures, intelligence capabilities, logistics, communications, medical evacuation, air support and, above all, political cohesion within the security institutions.

Without these foundations, a numerical increase in troop strength could create the appearance of preparedness without delivering actual security.

Political paralysis while the security clock runs

The contrast is increasingly difficult to ignore. Somalia’s political leadership is deeply divided over the rules governing the country’s next election. The government and opposition continue to argue over electoral mechanisms, the composition and legitimacy of the electoral commission and constitutional amendments.

Meanwhile, the country’s security environment remains fragile and international military support is under pressure. This creates a dangerous mismatch: Somalia’s politicians are negotiating who will govern the country next, while the country itself is struggling to build the security institutions needed for whoever eventually takes power.

The situation is particularly concerning given the political dispute surrounding President Hassan Sheikh Mohamud’s mandate and the broader constitutional controversy.

Mogadishu has also witnessed intense controversy over public land, with government critics alleging that politically connected individuals, including the president and members of his family, have benefited from the appropriation or redevelopment of public property.

These allegations should be subjected to independent investigation rather than treated as established fact. But the consequences of large-scale displacement are undeniable. Claims that approximately 750,000 people have been displaced in Mogadishu represent an extraordinary humanitarian and security concern.

Mass displacement can destroy livelihoods, deepen resentment and leave young people without employment or stable communities. Such conditions can be exploited by Al-Shabaab for recruitment, intimidation and propaganda.

The danger is not that every displaced person will become an insurgent. The danger is that a population that feels abandoned by the state becomes easier for an insurgency to target.

Al-Shabaab is not waiting

While Somalia’s political class remains locked in negotiations, Al-Shabaab continues to adapt. The group has demonstrated resilience under sustained military pressure and has increasingly shown its ability to shift tactics, exploit weak governance and operate across large parts of the country.

A reduction in foreign military support without a corresponding expansion in Somalia’s own capabilities could give the insurgency opportunities to regain territory, expand recruitment networks and increase attacks against government forces and civilian targets.

The withdrawal of Uganda would therefore not simply represent the departure of another foreign contingent. It could expose the consequences of Somalia’s failure to prepare for a post-international-security era.

The government and opposition have every reason to negotiate an electoral settlement. A legitimate political process is essential to national stability. But Somalia cannot afford to treat the electoral dispute as the country’s only national priority. The government should urgently publish a credible security-transition strategy answering basic questions:

How many operational troops does Somalia actually have? How will they be paid? Who will finance their logistics? Who will provide air support and intelligence after international forces withdraw? Which units are capable of independently holding territory? And what is the plan for preventing Al-Shabaab from exploiting the transition?

These are not secondary questions. They are questions of national survival. Uganda’s announced withdrawal provides Somalia with almost a year to prepare. Whether that period becomes a window for serious military reform or another year consumed by political confrontation will depend largely on the country’s political leadership.

Somalia has spent almost two decades relying on international forces to prevent its security architecture from collapsing. The country cannot assume that this arrangement will continue indefinitely.

The real deadline is not August 1, 2027. The real deadline is now. If Somalia’s political leaders continue fighting over electoral rules while failing to build the military institutions capable of protecting the state, the eventual withdrawal of foreign forces could expose a vacuum that Al-Shabaab will be more than willing to fill.

WardheerNews