Does Morocco Have Sharia Law? What the Law Really Says
It’s one of the questions we hear most often from travelers before they book, usually asked a little nervously: does Morocco have Sharia law? People picture strict religious courts, harsh punishments and rules that might catch a foreign visitor off guard. The real picture is very different, and a lot more interesting.
The short answer is no, not in the way most people mean it. Morocco is a Muslim country and Islam is the religion of the state, but its legal system is a mix. Most Moroccan law, including criminal, commercial and civil law, is written in codes inspired by the French and Spanish legal traditions. Islamic law, mainly through the Maliki school, shapes one main area: family law, meaning marriage, divorce, custody and inheritance. A few laws in the penal code also reflect religious values, and some of them only apply to Muslims.
In this guide we explain how the system actually works, where Islamic principles show up, what has changed in recent years, what the debates are today, and, most practically, what any of this means for you as a visitor. We’ve been guiding travelers around Morocco for years, and we’ll keep it clear, honest and free of scare stories.
The quick answer
| Question | Short answer |
|---|---|
| Is Morocco governed by Sharia law? | No. It has a mixed legal system built mostly on civil codes, with Islamic law central to family matters |
| Is Islam the state religion? | Yes. The 2011 Constitution names Islam as the religion of the state and guarantees free exercise of worship |
| Are there separate Sharia courts? | No. Family cases are heard in the family sections of ordinary state courts |
| Are hudud punishments like stoning or amputation used? | No. They are not part of Moroccan law |
| Do religious rules apply to tourists? | Moroccan laws apply to everyone, but some religion-based rules, such as fasting in public during Ramadan, only target Muslims |
| Can tourists drink alcohol? | Yes, in licensed hotels, bars and restaurants |
If you only want the practical side, jump to the section on what it means for travelers. If you’re curious about how a country can be both proudly Muslim and largely run on civil codes, read on.
What does Sharia actually mean?
Before looking at Morocco, it helps to clear up the word itself. Sharia is often translated as Islamic law, but it’s broader than a legal code. In Arabic it means something like the path, and it covers religious duties such as prayer and fasting, ethics, family life and, in some areas, legal rules.
What courts actually apply is fiqh, the human interpretation of Sharia worked out by scholars over centuries. Sunni Islam has four main schools of fiqh, and each one developed its own methods. That’s why two Muslim-majority countries can look completely different legally. Some, like Saudi Arabia, apply Islamic law widely, including in criminal matters. Others, like Turkey, have fully secular legal systems. Most countries, Morocco included, sit somewhere in between.
So the honest way to ask the question is not whether Morocco has Sharia law, but where, and how much, Islamic law shapes Moroccan law today.
How Morocco’s legal system works
Morocco is a constitutional monarchy with an elected parliament, a government led by a prime minister and a written constitution, last rewritten in 2011. Laws are drafted by the government or parliament, voted on, and published in the official bulletin. Judges are trained in modern law faculties, not religious seminaries.
The backbone of the system came together in the twentieth century. During the French protectorate, starting in 1912, French-style codes were introduced. One of the best known, the Code of Obligations and Contracts of 1913, still governs contracts in Morocco today, more than a century later. In the north, the Spanish zone had its own codes. If you want the historical background, our articles on whether France colonized Morocco and how the country took shape over the centuries explain how those layers built up.
After independence in 1956, Morocco kept the civil-law structure and wrote new national codes: the family code in 1957 and 1958, and the penal code in 1962. Today, the main branches look like this:
| Area of law | Main source | Islamic influence |
|---|---|---|
| Contracts and obligations | 1913 code, French-inspired | Low |
| Commercial and company law | Modern codes | Low, with Islamic banking as an option |
| Criminal law | 1962 Penal Code, French model | Some articles reflect religious values |
| Family law | The Moudawana, 2004 Family Code | High, based on Maliki fiqh |
| Inheritance | Part of the Family Code | High, follows Islamic shares |
| Constitutional law | 2011 Constitution | Islam as state religion, King as Commander of the Faithful |
That table is the clearest answer to the question. Islamic law is strong in a few chapters of Moroccan law, and largely absent from the rest.
Islam in the Moroccan Constitution
The 2011 Constitution describes Morocco as a Muslim state and names Islam as the religion of the state, while guaranteeing everyone the free exercise of worship. It also recognizes the Hebrew heritage of the country as part of the national identity, along with Arab, Amazigh, African, Andalusian and Mediterranean influences. That’s unusual in the region, and it reflects a long history of Jewish life in Morocco that you can read about in our guide to Jews in Morocco.
The King holds the title Amir al-Mu’minin, Commander of the Faithful. In practice, that means religious authority in Morocco is organized from the top. The King chairs the Higher Council of Ulema, the official body that issues religious opinions, or fatwas. Imams are trained in state institutions, Friday sermons follow official guidance, and Morocco promotes a moderate form of Islam built on the Maliki school, the Ash’ari creed and a tradition of Sufism.
This matters for the Sharia question. Because religious authority is centralized, there’s no room for self-appointed religious courts or vigilante enforcement of religious rules. Interpretation runs through official institutions, and law runs through parliament and the courts. Our article on whether Morocco is a Muslim country goes deeper into how faith shapes daily life.
A short history of Islamic law in Morocco
To understand today’s system, it helps to go back. Islam arrived in what is now Morocco in the late seventh and early eighth centuries, and the Idrisid dynasty founded the first Moroccan state in the late 700s. Over the following centuries, the Maliki school became the dominant legal tradition, strongly promoted by the Almoravids in the eleventh century, the Berber dynasty that founded Marrakech.
Fes became the intellectual capital of that tradition. The Qarawiyyin, founded in 859 by Fatima al-Fihri, grew into one of the great centers of Islamic learning in the Mediterranean, training judges and scholars for centuries. If you walk through the Fes medina today, you pass the same lanes where students once copied legal texts by hand.
For most of Moroccan history, justice was delivered by qadis, judges trained in Islamic law, alongside the authority of the sultan and his officials. In the mountains and the desert, many Amazigh communities also followed their own customary law, called izref or orf, for local disputes, especially over land and water. Real life was always more plural than the textbooks suggest.
The French and Spanish protectorates, from 1912 to 1956, created a layered system. There were modern courts for Europeans and many commercial matters, qadi courts for personal status, government courts for some local issues and, for a time, customary courts in Amazigh regions. A 1930 decree that tried to remove Amazigh areas from Islamic jurisdiction, known as the Berber Dahir, caused an uproar and helped spark the nationalist movement. Our article on whether Spain colonized Morocco covers the northern side of that story.
After independence, Morocco gradually unified this patchwork. A 1965 law brought the courts together into a single national system, using Arabic and staffed by Moroccan judges. The old qadi courts disappeared as separate institutions, and their family jurisdiction passed to the state courts. That’s why, today, there are no Sharia courts in Morocco, only state courts applying laws voted by parliament, some of which draw on Islamic jurisprudence.
How Moroccans live with it day to day
Ask ten Moroccans about the role of religion in the law and you’ll get ten answers. Morocco is a deeply religious society in many ways: the call to prayer shapes the rhythm of the day, Friday prayers fill the mosques, and most people fast during Ramadan. At the same time, it’s a young, connected country where people debate politics, women’s rights and personal freedoms openly, on television, on social media and around café tables.
For most families, Islamic law shows up at life’s big moments. Marriages are recorded by adouls, notaries trained in religious law, often in a ceremony at home before the wedding party. Inheritance is divided according to the shares set in the Family Code. Births, deaths and divorces pass through the state system. Day to day, though, people deal with traffic rules, rental contracts, tax returns and labor law, all of which are entirely civil.
What visitors notice most isn’t the law at all. It’s hospitality. The same values that shape family law, respect for elders, care for guests and the importance of family, are the reason you’ll be offered mint tea in a carpet shop, invited to share a tagine by a family in the Atlas or welcomed like a cousin in a desert camp.
Family law: where Islamic law matters most
If there’s one place where the answer to does Morocco have Sharia law comes closest to yes, it’s family law. Marriage, divorce, child custody, maintenance and inheritance for Moroccan Muslims are governed by the Family Code, known as the Moudawana. It’s based on the Maliki school of Islamic jurisprudence, which has shaped Moroccan legal tradition for roughly a thousand years.
The first Moudawana, written just after independence, was quite conservative. A woman needed a male guardian to marry, husbands could divorce by repudiation, and polygamy was easy. Moroccan women’s groups campaigned for decades to change it, and the debate divided the country. In 2004, after King Mohammed VI announced a reform, parliament adopted a new Family Code that was widely seen as one of the most progressive in the Arab world at the time.
What the 2004 Family Code changed
- The minimum marriage age was raised to 18 for both women and men, although judges can grant exceptions
- Adult women no longer need a male guardian to sign their marriage contract
- Husband and wife share responsibility for the family, rather than the wife owing obedience
- Polygamy became much harder: a judge must authorize it, with an exceptional reason, proof of resources and the first wife informed, and a wife can rule it out in her marriage contract
- Divorce moved under judicial control, and women gained the right to ask for divorce, including on the grounds of irreconcilable discord
- Grandchildren through a daughter gained inheritance rights, as grandchildren through a son already had
The reform was presented as a modern reading of Islamic law rather than a break from it. That’s an important point for understanding Morocco: change usually happens through reinterpretation within the religious tradition, not by removing religion from the law.
Inheritance
Inheritance is the part of the Family Code that follows classical Islamic rules most closely. Shares are fixed by law, and in many cases a daughter receives half the share of a son. Under a rule called ta’sib, if a man dies leaving only daughters, more distant male relatives can inherit part of the estate. Both rules are among the most debated topics in Morocco today, especially as more women work, buy property and support their families.
The current reform
In 2022 the King called for a new revision of the Family Code. A commission consulted widely, and in December 2024 more than 100 proposals were presented. They included keeping 18 as the marriage age with a narrow exception at 17, tighter rules on polygamy, letting divorced mothers keep custody after remarrying, protecting the family home for a surviving spouse, and allowing parents to give property to daughters during their lifetime. The Higher Council of Ulema reviewed the proposals and rejected a few that it considered to conflict with clear religious texts.
As of autumn 2026, the new text had not yet been adopted by parliament, so the 2004 code is still in force. The reform remains one of the most discussed political and social subjects in the country, with strong views on all sides, from those who think it goes too far to those who think it doesn’t go far enough.
Does family law apply to foreigners?
In general, the Moudawana governs the personal status of Moroccan Muslims. Moroccan Jews have their own rabbinical chambers for family matters, and foreigners are usually governed by the law of their own country for personal status. Things get more complicated when a foreigner marries a Moroccan citizen in Morocco, which involves Moroccan procedures and, for a non-Muslim man marrying a Moroccan Muslim woman, conversion to Islam. If that applies to you, speak to a lawyer rather than relying on a travel article.
Criminal law: civil code with a few religious traces
Morocco’s Penal Code dates from 1962 and follows the French model. Crimes, sentences and procedures look much like those in many European countries, and the people who apply them are state prosecutors and professional judges. There are no religious police in Morocco.
That said, several articles reflect religious and social values. These are the ones travelers sometimes ask about:
| Article | What it covers | Who it applies to |
|---|---|---|
| 222 | Publicly breaking the Ramadan fast without a valid reason | People known to be Muslim |
| 220 | Trying to shake the faith of a Muslim or convert them to another religion | Everyone |
| 490 | Sexual relations between unmarried adults | Everyone, though rarely enforced against tourists |
| 489 | Same-sex relations | Everyone |
| Alcohol decree of 1967 | Selling alcohol to Moroccan Muslims | Sellers, not tourists |
These laws are real, and some of them are controversial inside Morocco itself. Human rights groups, lawyers and many Moroccans have called for articles such as 222 and 490 to be removed, while others defend them as protecting public morals. The debate comes back every Ramadan and every time the penal code is discussed in parliament.
What you won’t find in Moroccan law
The punishments people often associate with Sharia, known as hudud, are not part of Moroccan law. There is no stoning, no amputation and no flogging. Apostasy is not listed as a crime in the penal code. Morocco still has the death penalty on paper, but no execution has been carried out since 1993, and in recent years the country has moved closer to the international campaign against it.
Islamic banking
One area where Islamic principles have been added recently, not removed, is finance. Since 2017 Morocco has allowed participative banks, which offer products designed to comply with Islamic rules on interest. They sit alongside conventional banks, and customers simply choose which they prefer. It’s a good example of the Moroccan approach: religion offered as an option inside a modern system.
What this means for travelers
Now the practical part. For the vast majority of visitors, Moroccan law feels no different from the law at home. You can walk the medinas, stay in riads, hike in the Atlas, ride camels in the Sahara and enjoy a glass of Moroccan wine at dinner without any legal worry. Still, a few points are worth knowing.
Alcohol
Alcohol is legal for tourists and easy to find in licensed hotels, many riads, bars and restaurants, and in supermarket alcohol sections in big cities. The legal restriction is on selling to Moroccan Muslims, not on foreigners drinking. Drinking in the street or arriving drunk at a mosque or a family home is another matter, and it’s rude more than illegal. Our guide to alcohol in Morocco covers where and how to buy it.
Ramadan
Article 222 applies to Muslims, so non-Muslim tourists can eat and drink during Ramadan. Restaurants in tourist areas stay open, and hotels serve meals as usual. It’s simply polite to avoid eating, drinking or smoking openly in the street during daylight hours. Read more in our guides to Ramadan in Morocco and traveling during Ramadan.
Couples
Unmarried foreign couples share rooms in Moroccan hotels and riads every day without any problem. The situation is different for Moroccan couples, and for a Moroccan and a foreigner together, where some hotels ask for a marriage certificate because of article 490. If you’re traveling as a mixed couple, check the accommodation’s policy before booking. Public displays of affection beyond holding hands are frowned upon in conservative areas, whatever your nationality.
Religion
You’re free to practice your own faith in private and in the churches and synagogues open in big cities. What’s illegal is trying to convert Muslims, so don’t hand out religious material or preach. Most mosques are closed to non-Muslims, with the famous exception of the Hassan II Mosque in Casablanca and a few historical sites.
LGBTQ+ travelers
Same-sex relations are criminalized under article 489. Enforcement against tourists is rare, and many LGBTQ+ travelers visit Morocco without incident, but discretion in public is strongly advised. Our Morocco safety guide includes more practical advice.
Dress
There is no legal dress code in Morocco. Women aren’t required to cover their hair, and you’ll see Moroccan women in everything from headscarves to jeans. Modest clothing covering shoulders and knees is a sign of respect, especially in rural areas and religious sites, and it usually means less unwanted attention. Our guide on what to wear in Marrakech has packing tips that work for the whole country, and solo travelers will find more in our guide for solo female travellers.
Common myths about Sharia in Morocco
- Myth: Morocco is ruled by religious courts. Reality: there are no separate Sharia courts. Family cases go to the family sections of ordinary state courts.
- Myth: Tourists must follow Islamic rules. Reality: tourists follow Moroccan law, like anyone in any country, and the religion-based rules mostly target Muslims.
- Myth: Women must wear a headscarf. Reality: there’s no dress law, and covering is a personal choice.
- Myth: You can’t drink alcohol in Morocco. Reality: it’s legal and widely available in licensed places.
- Myth: Morocco uses harsh Islamic punishments. Reality: there’s no stoning, amputation or flogging in Moroccan law.
- Myth: Moroccan law never changes. Reality: family law was rewritten in 2004 and another reform is in progress.
How Morocco compares with other countries
| Country | Role of Islamic law |
|---|---|
| Saudi Arabia | Islamic law is central across the legal system, including criminal matters |
| Morocco | Mixed system: civil codes overall, Islamic law in family and inheritance |
| Egypt | Mixed system: civil codes, with religious law for personal status |
| Tunisia | Mixed system with a notably reformed personal status code |
| Turkey | Fully secular legal system |
Morocco sits firmly in the middle group. It’s closer to Egypt and Tunisia than to the Gulf, and its approach is shaped by the monarchy’s religious role, which allows reforms to be framed as part of the Islamic tradition.
Our honest take
So, does Morocco have Sharia law? Islamic law is part of Moroccan law, especially in family matters and inheritance, and the state is officially Muslim. But Morocco isn’t governed by Sharia in the sense most people fear. Its courts, criminal code, contracts and business law follow a modern civil-law system, and the rules that affect tourists are few and easy to respect.
For travelers, the practical advice is the same we give every guest. Dress modestly in rural areas, be discreet during Ramadan, keep public affection low-key, and enjoy one of the most welcoming countries in the world. If you have questions about a specific situation before your trip, contact our team and we’ll tell you honestly what to expect. And when you’re ready to plan, take a look at our guide to planning a trip to Morocco or our Marrakech desert tours.
Frequently asked questions about Sharia law in Morocco
Does Morocco follow Sharia law?
Not as a whole. Morocco has a mixed legal system built mostly on civil codes inspired by French law. Islamic law, through the Maliki school, mainly shapes family law and inheritance, and a few penal code articles reflect religious values.
Are there Sharia courts in Morocco?
No. There are no separate religious courts. Family matters for Moroccan Muslims are handled by the family sections of the ordinary state courts, and Moroccan Jews have rabbinical chambers for their personal status.
Do tourists have to follow Islamic law in Morocco?
Tourists must follow Moroccan law, like anyone in the country. Some religion-based rules, such as the ban on eating in public during Ramadan, apply only to Muslims. Alcohol is legal for visitors in licensed places.
Can unmarried couples stay together in Morocco?
Unmarried foreign couples can share hotel and riad rooms without problems. Moroccan couples, and mixed Moroccan and foreign couples, may be asked for a marriage certificate, so check the policy before booking.
Do women have to cover their hair in Morocco?
No. There is no legal dress code. Many Moroccan women wear a headscarf and many don’t. Modest clothing is appreciated, especially in rural areas and at religious sites.
Is the Moroccan Family Code changing?
Yes, a reform is in progress. Proposals were presented in December 2024, but as of autumn 2026 the new text had not been adopted, so the 2004 Family Code still applies.
Explore our Morocco trips:
Tours from Marrakech: Cross the High Atlas to Ait Ben Haddou and the dunes of Erg Chebbi.
Morocco Desert Tours: Camel trekking and a night under the stars in a Sahara desert camp.
Tours from Fes: The oldest medina in Morocco, then the Middle Atlas and the desert.
Tours from Casablanca: Begin at the Hassan II Mosque and travel through the imperial cities.
Tours from Tangier: Start in the north with Chefchaouen and the Rif Mountains.
Tours from Ouarzazate: Kasbahs, film studios and the gorges of the south.
Contact us

Your Local Experts
Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.
Plan Your Trip
Click any destination to see more:
Marrakech Desert Tours
- 2 Days Desert Tour from Marrakech
- 3 Days Marrakech to Merzouga
- 3 Days Marrakech to Fes
- 4 Days Marrakech to Merzouga
- 4 Days Marrakech to Fes
- 5 Days Marrakech to Merzouga
- 5 Days Morocco Tour from Marrakech
- 6 Days Morocco Tour from Marrakech
- 7 Days Morocco Tour from Marrakech
- 8 Days Morocco Tour from Marrakech
- 8 Days with Imperial Cities
- 9 Days Morocco Tour from Marrakech
- 10 Days Morocco Tour from Marrakech
- 12 Days Morocco Tour from Marrakech
- 14 Days Morocco Tour from Marrakech