Foes to friends: Mogadishu-Nairobi relations
It was less than three years ago that Kenya and Somalia appeared to be inadvertently hurtling towards armed conflict. Relations between Mogadishu and Nairobi had plummeted following the inauguration of former Somali President Mohamed Abdullahi Farmaajo in 2017, particularly over his repeated attempts to undermine Jubaland President and Kenyan ally Ahmed Mohamed Islam 'Madoobe.' Kenyan diplomats were expelled from the Somali capital in 2020, and by mid-2021, tensions were dangerously mounting over disputed maritime territory in the oil-rich Indian Ocean. Thankfully, violence was avoided between the neighbouring states, though relations remained brittle during Farmaajo's tenure.
New administrations in both capitals offered the opportunity for a welcome reset in 2022, and ties have steadily improved since. Kenya Airways has resumed offering direct flights from Nairobi to Mogadishu, and Somalia's lucrative khat trade has been opened up again to Kenyan producers, having been entirely shut out by Farmaajo's family ties to the Ethiopian khat market. With Kenya and Somalia closely economically integrated, the downturn in diplomatic relations had proven corrosive for many thousands of Somalis working in Kenya and vice-versa. Nairobi's ongoing construction boom in some of its wealthier neighbourhoods, like Parklands, is nearly entirely underwritten by Somali capital, while expatriate Kenyans are employed in a litany of professions from Bosaaso to Kismaayo. And Somalia's ascension to the regional East Africa Community (EAC) in 2023 may yet drive greater economic integration, which has already proven remarkably profitable for both states.
In recent months, amid the public souring of relations between Mogadishu and Addis, Villa Somalia has launched a minor charm offensive on its western neighbour. In early May, Somalia's Prime Minister Hamza Abdi Barre travelled to Nairobi to sign a raft of agreements, ranging from security cooperation to health capacity building. It was Barre's first official visit to Kenya, and was sandwiched by several separate trips to Nairobi by President Hassan Sheikh Mohamud. Most recently, Hassan Sheikh travelled to the Kenyan capital for the African Development Bank annual meeting last week. During his visit, the Somali president also found time to venture to a mall in Eastleigh, colloquially known as 'Little Somalia' and home to over 250,000 Somalis.
Conspicuously absent from the agreements signed in early May was a talk of reopening the Kenyan-Somali international border, however. Despite bilateral discussions in early 2023 about its possible reopening, these were quickly shelved following a spate of attacks by Al-Shabaab in Kenya's Northern Counties. Nairobi's security services remain concerned about the security implications of reopening the border that has been shut since 2011—even with Somalia's ascension to the EAC, which is supposed to allow Somali nationals visa-free travel to all member states.
While Kenyan President William Ruto and his Somali counterpart have met a number of times in recent weeks, Nairobi is continuing to tread a careful diplomatic line between Mogadishu and Addis. Kenya has been careful not to antagonise either party and has so far successfully avoided being publicly dragged into the still-acrimonious dispute. It has also attempted to soothe tensions between Addis and Mogadishu, reportedly seeking to organise a meeting between Ethiopian Prime Minister Abiy Ahmed and Somalia's President Hassan Sheikh Mohamud in Nairobi in late February, when both leaders were in town.
Somalia's National Security Advisor (NSA) Hussein Moalim's latest comments may complicate the current detente between Nairobi and Mogadishu somewhat. Last week, Moalim confirmed rumours that Villa Somalia would seek to expel thousands of Ethiopian troops by December 2024's end due to the MoU with Somaliland. It is unclear if Moalim's comments caught Nairobi unawares. Kenya has not yet publicly commented on the NSA's announcement and is unlikely to contradict its sensitive ally, but is hardly likely to be supportive of the withdrawal of the Ethiopian National Defence Force (ENDF) securing South West State, and Jubaland to a lesser extent. While Kenyan and Ethiopian units have a history of bickering and jostling over turf in South-Central Somalia, the strategic Addis-Nairobi relations have meant the two can overcome localised tensions and project a more unified security and military stabilisation posture.
Moreover, Kenyan President William Ruto has repeatedly voiced his support for the continuation of the African Union Transition Mission in Somalia (ATMIS). In a speech during his recent state visit to the US, President Ruto called the ATMIS draw-down timelines "calendar-based, not conditions-based" and warned that Al-Shabaab would step into any security vacuum left by the withdrawing forces. The Kenyan president's comments are entirely correct-- the looming ATMIS withdrawal poses an enormous threat to Somalia's security, as well as Kenya's and Ethiopia's.
And this threat will only be compounded by the withdrawal of thousands of non-ATMIS, ENDF troops. Sacrificing Somalia's security for dubious arguments and indignation over "sovereignty, territory, and territorial integrity" would be a grave mistake. Consequently, Nairobi's steadying influence within Mogadishu could be well-placed to guide Villa Somalia towards steadier ground. The future of ATMIS, and whatever comes next, remains in the wind, but sober, regional coordination is critical to protecting the Horn's security-- not bombshell security announcements that destabilise Somalia's internal and external politics.
By the Somali Wire Team
Gain unlimited access to all our Editorials. Unlock Full Access to Our Expert Editorials — Trusted Insights, Unlimited Reading.
Create your Sahan account LoginUnlock lifetime access to all our Premium editorial content
Today marks exactly two months since Somali President Hassan Sheikh Mohamud (HSM) unveiled his unilateral one-year term extension. While it is too early to draw definitive conclusions, HSM has evidently survived, rebounded, and consolidated power in ways that defy earlier predictions. A leader whom many had been wont to dismiss as too tarnished to retain executive power beyond May 2026 remains firmly in the saddle, holding the political initiative and dictating terms. His opponents, meanwhile, are in deep disarray. Their cohesion is fracturing, they lack a coherent, unified strategy, and they are locked in a dialogue of attrition designed to wear down their will and force their capitulation.
The Somaliland–Ethiopia Memorandum of Understanding (MoU) was hailed as a historic breakthrough. In reality, it was a strategic gamble built on contradictions—and its apparent failure may prove to be a blessing in disguise for Somaliland and Ethiopia.
For the first time in over six decades, Somalia has overhauled its foundational criminal law - the 1962 Law No. 5. Now awaiting parliamentary and presidential approval, the Draft Somali Penal Code (SPC) nonetheless struggles with multiple hurdles and will likely face significant objection, not least, from Somalia’s Western partners and liberal-minded younger generation of Somalis disappointed with the new text’s failure to break away from its historical illiberal roots.
The Federal Government of Somalia (FGS) has published a new Draft Somalia Penal Code (SPC) - marking its first comprehensive legal overhaul in 64 years. The 136-page draft was first submitted to Parliament in January 2026 and underwent its first reading but the process of endorsing it became entangled with the escalating electoral and constitutional dispute, forcing the government to shelve it. The changes aim to update the 1962 Law No. 5 Penal Code and codify Islamic criminal law (uqubat). If endorsed by parliament and approved by the President, they will formally embed the three pillars of the Sharia punitive framework into the statute - fixed punishments (hudud), retributive justice (qisas), and statutory judicial discretion (ta'zir).
A president does not pay a visit to Wajir by accident. When William Samoei Ruto chose Wajir as the centre stage for Kenya’s Madaraka Day celebrations on 1 June — the first sitting president to do so — he was not merely varying the ceremonial calendar. He was making a premeditated statement about who belongs at the centre of Kenya’s state and who no longer belongs at its margins. The message was not merely ‘taking Nairobi to NorthEastern.’ It was the centring and mainstreaming of an ethnic Somali-dominated region that, for much of Kenya’s post-colonial history, has been treated as a security issue rather than a political constituency.
Somaliland President Abdirahman Irro’s trip to Israel in June (from 14-17) was far more than symbolism. Not only was it a calculated strategic diplomatic play, and a chance for Somaliland to appear on the world stage, but also an opportunity for Somaliland to present itself as a fully-functional state, able to conduct foreign relations and cut bilateral deals. Irro, a seasoned former diplomat, navigated the intricate demands of state protocol with remarkable ease - cutting an immaculate, regal figure in his navy-blue suit. Accorded full head-of-state honours, he laid a wreath at the Theodore Herzl mausoleum, engaged in high-level talks with President Isaac Herzog and Prime Minister Benjamin Netanyahu, opened the new Somaliland embassy in Jerusalem and convened meetings with Knesset members, senior officials, and business leaders. For Israel, hosting President Abdirahman Irro in Jerusalem functioned to signal its strong commitment to deepening strategic ties while also countering perceptions of waning diplomatic momentum.
Never interrupt your enemy when they are making a mistake. Napoleon Bonaparte’s classic rule of combat seems to be the guiding doctrine behind Al-Shabaab’s sudden, uncharacteristic radio silence as Mogadishu’s political elite tear themselves apart. As the ‘government-in-waiting’, one would have assumed the militants would take full advantage of its adversaries’ internal divisions, maximising the propaganda opportunities this offers, and campaign for their own cause. Typically quick to weaponise any intra-Somali division, the militant group's decision to sit out the latest intra-Somali fracturing is intriguing. By withholding its usual blitz of propaganda, the group is playing a longer, quieter game - waiting for the federal house to implode further before stepping in.
While much international attention is on Mogadishu – understandably so - another electoral crisis is brewing in the regional state of Galmudug. Historically unstable, prone to Al-Shabaab violence and destabilisation and wracked by chronic inter-clan frictions and periodic armed hostilities, the looming vote appears likely to aggravate the situation and foment more divisions.
Two days of heavy clashes (3–4 June) in the Somali capital, Mogadishu, between federal troops and opposition-aligned forces have underscored both the fragility of the city’s security environment and the volatility of electoral politics. Although relative calm has since returned to the two hardest-hit districts - Hawl Wadaag and Abdiaziz - and mediation efforts have intensified, tensions remain high, fuelling fears of renewed armed skirmishes. Credible reports of mass clan militia mobilisation on the edges of Mogadishu speak to a conflict that is widening. The militarisation of politics and elite fragmentation over the electoral process have shattered a core assumption: that Somali leaders will ultimately step back from the brink to negotiate a way forward. Consequently, the country is entering a perilous phase in which domestic factions alone cannot resolve the impasse, making neutral, external mediation a necessity.