# The Shafi'i school of law in Somalia: the madhhab most Somalis follow

> The Shafi'i school in Somalia: how it arrived, what it teaches, where courts and scholars use it, and how Hanbali and Salafi teaching has changed the picture.

Source page: https://calankii.com/en/society/shafii-school-in-somalia/
Last checked: 2026-11-19
Publisher: Calankii (https://calankii.com)

## In simple words

The [Shafi'i](/en/society/islam-in-somalia/) school is one of four main ways Sunni Muslims study Islamic law ([Library of Congress, Somalia: A Country Study, 1992](https://countrystudies.us/somalia/45.htm)). Somali Muslims have followed it for a long time ([Expanding Access to Justice Program, The Shari'ah in Somalia, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). Wikipedia says it is the main school in Djibouti, Ethiopia, Eritrea and Somalia ([Shafi'i school, Wikipedia](https://en.wikipedia.org/wiki/Shafi%27i_school)).

## How the school works

The school treats the Qur'an and the Sunnah as the primary sources of law, and consensus (*ijma'*) and analogy (*qiyas*) as secondary sources ([Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). The same report says that in Shafi'i law "consensus" strictly means the whole Muslim community, although scholars increasingly limit it to the religiously learned. Al-Shafi'i's own groundwork text is the *Risala*, written in Egypt ([Shafi'i school, Wikipedia](https://en.wikipedia.org/wiki/Shafi%27i_school)).

## How it reached the Somalis

The 2020 report says the school was first introduced to Somalia by Yemeni scholars. It adds that Hanafi practice was dominant before the 1300s, until travelling Yemeni scholars brought Shafi'i teaching ([Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). The traveller Ibn Battuta, who reached Zeila in 1331, wrote that the Somalis ("Barbara") followed the Shafi'i school ([Ibn Battuta, A través del Islam, trans. Fanjul and Arbós, 2017](https://archive.org/details/ibn-battuta.-a-traves-del-islam-2017)). See [Ibn Battuta in Mogadishu and Zeila](/en/history/ibn-battuta-in-mogadishu-and-zeila-1331/) and [how Islam reached the Somalis](/en/society/how-islam-reached-the-somalis/). The Sufi orders that spread from the 1400s, such as the Qadiriyya, worked inside the school ([Library of Congress, 1992](https://countrystudies.us/somalia/47.htm)). See [the Sufi orders in Somalia](/en/society/sufi-orders-in-somalia/).

## Study abroad

Somali Islamic schools do not award internationally recognised degrees in sharia, so students go abroad. Before the civil war, [Sudan](/en/diaspora/sudan/), Egypt and Yemen were popular, and the report's respondents linked this to the earlier prevalence of the Shafi'i school, since "most renown Shafi'i ulama teach in these countries" ([Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). Today more students choose Saudi Arabia, where, the report says, interviewees described the institutions as Salafi and the Hanbali school as dominant. For local teaching see [Qur'an schools and religious learning](/en/society/quran-schools-and-religious-learning/).

## In the courts

The report says sharia is applied most widely by statutory family courts, "by and large following the Shafi'i madhab", and that judges often apply [xeer](/en/society/xeer-customary-law/) alongside it, so a judge's understanding may depart from Shafi'i rules. [In Somaliland](/en/society/in-somaliland-ritchie-1913/) it says ulama "principally follow the Shafi'i madhab", Sufi ulama there "unanimously" do, and qaadis (sharia judges) are evaluated by the Ministry of Religious Affairs and licensed by the Ministry of Justice. Only civil cases go to qaadis, and their decisions are not binding unless the parties agree ([Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). See [the 1975 family law](/en/society/family-law-1975-and-the-ten-scholars/).

## Change since the 1980s

The report says Salafi influence grew in the 1980s as Somali students and workers went to Saudi Arabia, and that interviewees believed the Hanbali school was gaining ground, with one saying that under [Siad Barre](/en/people/siad-barre/) "almost all Ulama were Shafi'i". Key informants estimated that Salafism made up 50 percent of teaching in Mogadishu, 40 percent in [South West State](/en/states/south-west-state/) and 60 percent in [Puntland](/en/states/puntland/) ([Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)). See [Islamic movements in Somalia since 1950](/en/society/islamic-movements-in-somalia-since-1950/).

## Data and method

The dates and figures on this page come from the sources listed below, mainly Expanding Access to Justice Program, 2020; Shafi'i school, Wikipedia; Ibn Battuta, A través del Islam, trans. Fanjul and Arbós, 2017. Each fact carries the link to the source that gives it, and the year of a source is shown in its name where one is given. The sources are as they stood on 17 November 2026, when this page was written.

## Sources

- [Expanding Access to Justice Program, 2020](https://cnxus.org/wp-content/uploads/2022/04/Shariah-in-Somalia-final.pdf)
- [Shafi'i school, Wikipedia](https://en.wikipedia.org/wiki/Shafi%27i_school)
- [Ibn Battuta, A través del Islam, trans. Fanjul and Arbós, 2017](https://archive.org/details/ibn-battuta.-a-traves-del-islam-2017)
- [Library of Congress, 1992](https://countrystudies.us/somalia/47.htm)
- [Library of Congress, Somalia: A Country Study, 1992](https://countrystudies.us/somalia/45.htm)

---
I want to help with this: email hello@calankii.com. Fix this page: email hello@calankii.com with the page link and your source.
