# Laws of Somalia: sources and main codes

> An overview of Somalia's laws: the three sources (civil law, Sharia, xeer), the constitution, the 1960s and 1970s codes still applied, and the federal laws passed since 2012, with links to each page.

Source page: https://calankii.com/en/government/laws-of-somalia/
Last checked: 2026-11-17
Publisher: Calankii (https://calankii.com)

## Where does Somali law come from?

Formal Somali law draws on three systems: **civil law**, **Islamic law (Sharia)** and **xeer**, the Somali customary law ([Wikipedia, Xeer](https://en.wikipedia.org/wiki/Xeer), citing the CIA World Factbook). Under xeer, elders known as *xeer begti* act as mediators and judges, taking precedent and custom into account ([same source](https://en.wikipedia.org/wiki/Xeer)). Different groups interpret xeer differently ([same source](https://en.wikipedia.org/wiki/Xeer)).

Before 1960, [British Somaliland](/en/history/british-somaliland-1884-1960/) used laws from the British system and Italian [Somaliland](/en/states/somaliland-1991-to-2026/) used Italian laws ([Wikimedia Commons, Copyright rules by territory: Somalia](https://commons.wikimedia.org/wiki/Commons:Copyright_rules_by_territory/Somalia)). After union in 1960 the [Somali Republic](/en/states/somali-republic-1960-1969/) replaced these with national codes, listed below.

## The constitution

The [Provisional Constitution of 2012](/en/institutions/constitution-of-somalia/) is the top law of the Federal Republic. It states that no law may be enacted that does not comply with the general principles and objectives of Sharia (Article 2; [Constitute Project, Somalia's Constitution of 2012](https://www.constituteproject.org/constitution/Somalia_2012)). Member states have their own constitutions, such as the [Constitution of Puntland](/en/government/constitution-of-puntland/).

## The main codes

| Code | Law and date | In force | Notes | Source |
|---|---|---|---|---|
| Penal Code | Legislative Decree No. 5, 1 December 1962 | 1964 | three books: offences in general, crimes, contraventions; "still largely applied" | [FAOLEX via UNEP LEAP](https://leap.unep.org/en/countries/so/national-legislation/penal-code-1962) |
| Criminal Procedure Code | 1963 | — | part of the framework in force | [EUAA, June 2026](https://www.euaa.europa.eu/somalia-displacement-mogadishu/31-legal-and-policy-framework) |
| Prison Law and Custodial Corps Act | 1972 | — | part of the framework in force | [EUAA](https://www.euaa.europa.eu/somalia-displacement-mogadishu/31-legal-and-policy-framework) |
| Civil Code | Law No. 37, 2 June 1973 | 1 July 1973 | 958 articles on obligations, contracts and property; official versions in Arabic and Italian | [FAOLEX via UNEP LEAP](https://leap.unep.org/en/countries/so/national-legislation/somali-civil-code) |
| Family Law | January 1975 | — | equal inheritance for women and men | [Library of Congress Country Study](https://countrystudies.us/somalia/49.htm) |
| Copyright Law | Law No. 66, 7 September 1977 | — | life plus 30 years | [Copyright law of Somalia](/en/government/copyright-law-of-somalia/) |
| Prison Regulation | 1984 | — | rules for the country's prisons | [EUAA](https://www.euaa.europa.eu/somalia-displacement-mogadishu/31-legal-and-policy-framework) |

## The 1975 Family Law

In early January 1975 [Siad Barre](/en/people/siad-barre/) announced a new family law that gave women the right to inherit on an equal basis with men. Twenty-three religious leaders in Mogadishu protested inside their mosques; they were arrested and charged with acting for a foreign power and violating state security, and ten were executed ([Library of Congress, Somalia: A Country Study, "Islam in the Colonial Era and After"](https://countrystudies.us/somalia/49.htm)). For the period, see [Siad Barre era, 1969–1991](/en/history/siad-barre-era-1969-1991/).

## Laws passed since 2012

These federal laws each have their own page:

- [Somali citizenship law](/en/government/somali-citizenship-law/)
- [Political parties law](/en/government/political-parties-law-somalia/)
- [Electoral commission and elections law](/en/government/national-independent-electoral-and-boundaries-commission/)
- [Data Protection Act 2023](/en/government/data-protection-act-2023/)
- [National Payment System Law](/en/government/national-payment-system-law/)
- [Cybersecurity and cybercrime laws](/en/government/cybersecurity-and-cybercrime-laws/)
- [Sexual offences laws](/en/government/sexual-offences-laws/)
- [Juvenile justice law](/en/government/juvenile-justice-law/)
- [Civil registration and vital statistics law](/en/government/civil-registration-and-vital-statistics-law/)
- [Land law and land ownership](/en/economy/land-law-and-land-ownership/)

## Treaties

For the human rights treaties Somalia has joined, see [Human rights treaties of Somalia](/en/government/human-rights-treaties-of-somalia/) and [ICCPR and Somalia](/en/government/iccpr-somalia/).

## Courts and officials

- [Courts and judiciary](/en/institutions/courts-and-judiciary/)
- [Attorney General](/en/institutions/attorney-general/)
- [Ministry of Justice](/en/institutions/ministry-of-justice/)
- Somaliland's laws: [Laws of Somaliland](/en/government/laws-of-somaliland/)

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