Constitutions and laws
Laws of Somalia: sources and main codes
In simple words
Somali law draws on three systems: civil law, Islamic law (Sharia) and the customary law called xeer. The 2012 Provisional Constitution says no law may go against the general principles of Sharia. The main codes still date from the Somali Republic and the Somali Democratic Republic: the Penal Code (1962, in force 1964), the Criminal Procedure Code (1963), the Civil Code (Law No. 37 of 2 June 1973) and the Family Law of 1975. Since 2012 the Federal Parliament has added laws on citizenship, elections, parties, data protection, payments, cybercrime and more.
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, 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). Different groups interpret xeer differently (same source).
Before 1960, British Somaliland used laws from the British system and Italian Somaliland used Italian laws (Wikimedia Commons, Copyright rules by territory: Somalia). After union in 1960 the Somali Republic replaced these with national codes, listed below.
The constitution
The Provisional Constitution of 2012 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). Member states have their own constitutions, such as the 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 |
| Criminal Procedure Code | 1963 | — | part of the framework in force | EUAA, June 2026 |
| Prison Law and Custodial Corps Act | 1972 | — | part of the framework in force | EUAA |
| 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 |
| Family Law | January 1975 | — | equal inheritance for women and men | Library of Congress Country Study |
| Copyright Law | Law No. 66, 7 September 1977 | — | life plus 30 years | Copyright law of Somalia |
| Prison Regulation | 1984 | — | rules for the country's prisons | EUAA |
The 1975 Family Law
In early January 1975 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"). For the period, see Siad Barre era, 1969–1991.
Laws passed since 2012
These federal laws each have their own page:
- Somali citizenship law
- Political parties law
- Electoral commission and elections law
- Data Protection Act 2023
- National Payment System Law
- Cybersecurity and cybercrime laws
- Sexual offences laws
- Juvenile justice law
- Civil registration and vital statistics law
- Land law and land ownership
Treaties
For the human rights treaties Somalia has joined, see Human rights treaties of Somalia and ICCPR and Somalia.
Courts and officials
- Courts and judiciary
- Attorney General
- Ministry of Justice
- Somaliland's laws: Laws of Somaliland
Sources
- Wikipedia, Xeer · en.wikipedia.org
- Wikimedia Commons, Copyright rules by territory: Somalia · commons.wikimedia.org
- Constitute Project, Somalia's Constitution of 2012 · constituteproject.org
- FAOLEX via UNEP LEAP · leap.unep.org
- EUAA, June 2026 · euaa.europa.eu
- FAOLEX via UNEP LEAP · leap.unep.org
- Library of Congress Country Study · countrystudies.us
Same era
- Australia18,401 people of Somali ancestry and 8,101 born in Somalia lived in Australia at the 2021 Census, more than half in Victoria. History, work, issues.
- Birmingham (Somali diaspora)About 17,000 to 21,600 Somalis live in Birmingham (Census 2021), mostly in Nechells, Newtown, Small Heath and Alum Rock. History, work, health and ties home.
- Bristol (Somali diaspora)9,167 people in Bristol identified as Somali or Somalilander in Census 2021, the city's largest minority group. Where they live, work, housing, leaders and ties home.
- Calgary, Alberta, Canada2,845 people of Somali origin lived in Calgary at the 2021 Census, plus 890 in Brooks. How they came, who serves them and what they face.
- Denmark (Somali diaspora)21,885 people of Somali origin lived in Denmark in 2026, half born there. Numbers, history, work, permit reviews, and ties home.
- DjiboutiAbout 13,900 refugees from Somalia live in Djibouti (Aug 2026): numbers since 1990, Ali Addeh, Holl-Holl, the 2017 refugee law, Arta 2000 and 2025 returns.
Keep reading
- Constitution of PuntlandThe Constitution of Puntland: the 1998 Garowe charter, the 2001 and 2012 texts, what the 2012 constitution contains, the 2023 amendments and the dispute around them.
- Somali citizenship law: who is a Somali citizenSomali citizenship law: Law No. 28 of 1962, citizenship by birth through the father, by grant, by marriage, losing it, dual citizenship, the 2012 constitution and the 2016 reform bill.
- Somaliland citizenship law (Law No. 22/2002)Somaliland's Citizenship Law of 2002: citizenship by birth, proof through a registered akil, grants to foreigners after 10 years, marriage, children, loss and re-acquisition, and the 1960 ordinance it builds on.
- Laws of Somaliland: list of numbered laws since 1993A list of Somaliland's numbered laws, 1993 to 2021, by subject: constitution and government, elections and parties, courts and crime, money and tax, business, the sea, and social laws, with links to each text.
- Constitution of DjiboutiThe Constitution of Djibouti: its adoption in 1992, its structure, rights, presidency, parliament and courts, the 2010 amendments on terms and the death penalty, and the 2025 removal of the presidential age limit.
- Copyright law of SomaliaCopyright in Somalia: Law No. 66 of 1977, its 30-year term, registration and the lost copyright office, Somalia's WIPO and treaty position, the 2017 press law, and the reopened trademark office.