The Horn of Africa country has been facing a 17-year insurgency led by the al-Qaeda-linked Al-Shabaab group. The court also sentenced an Ethiopian national and a Somali citizen to 10 years in prison in connection with the same case.

Last year, a U.S. military raid in northern Somalia,. ordered by President Joe Biden, killed a key ISIS leader in the region. Bilal al-Sudani was responsible for financing IS operations, not only in Africa but also in Afghanistan.