Marrakech GuidebookAn Independent City Guide Map

Home › Blog

Is Morocco Tolerant of Homosexuality?

No, Morocco is not tolerant of homosexuality in law: same-sex acts are punishable under article 489 of the Penal Code, and the UK says public affection can lead to prosecution. This page answers is Morocco tolerant of homosexuality for LGBTQ+ travellers and allies by quoting the law, setting the UK, Canadian and French advice side by side and covering hotels, dating apps and what visitors can do in Marrakech. For the rest of the trip, see things to do in Marrakech.

A pair of travellers seen from behind walking beside the pink ramparts of Marrakech on a sunny morning, setting the scene for whether Morocco is tolerant of homosexuality
Quick answer The law, what governments advise, and how to travel

No. Morocco is not tolerant of homosexuality in law: article 489 of the Penal Code punishes same-sex acts with six months to three years in prison and a fine of 120 to 1,000 dirhams, and the UK Foreign Office says showing affection in public can lead to prosecution. Many LGBTQ+ travellers still visit Marrakech and the tourist trade is used to visitors, but the legal risk is real and the advice is discretion.

Key takeaways

  • Same-sex relations are illegal under the Penal Code and the law covers women as well as men, so the law section quotes article 489 and its neighbours
  • Three governments warn LGBTQ+ travellers in plain terms, and the advisory table gives the UK, Canadian and French wording side by side
  • The UK states that the law on unmarried people sharing a hotel room does not generally apply to visiting foreign nationals, which matters for booking a room
  • Dating applications carry legal, safety and privacy risks according to the UK, and the apps section says what that means in practice
  • A private guide for the day and a pre-booked airport transfer remove most of the unknowns, and where to stay covers the sleeping side

Ways to Travel With Fewer Unknowns

A private guide or a pre-booked transfer keeps the exchanges you have to manage to a minimum, which is useful when public discretion is advised. Every card links to the operator's own page, where the calendar shows what is open on your date.

Private guide and visitor pausing under a keyhole arch in the old town on a tailor-made private medina tour in Marrakech from $66.35

Marrakech: Tailor-Made City Tour With Your Own Private Guide

listed at $66.35

★★★★★ ★★★★★ 5.0(303 reviews)· 3.5 - 6.5 hours

Half or full-day private tour built around what you ask to see, with pickup included. Up to two sights on the half-day and four on the full day; entrance fees are not included.

Check Availability
Private transfer car waiting outside the arrivals hall at Menara airport for a Marrakech airport to city transfer from $8.29

Marrakech: Private Transfer to/from RAK Menara Airport

listed at $8.29

★★★★★ ★★★★★ 4.7(6,443 reviews)· 20 minutes

Private transfer between Menara airport and your Marrakech address, about 20 minutes. Vehicles cannot enter parts of the medina, so the drop-off can leave a 5-10 minute walk with luggage.

Check Availability
Guide leading visitors past a fondouk doorway in the old medina on a Marrakech medina and historical monuments guided tour from $17.47

Marrakech: Historical Monuments, Souks & Medina Guided Tour

listed at $17.47

★★★★★ ★★★★★ 4.7(904 reviews)· 4 hours

Four-hour licensed-guide circuit of the medina monuments, souks and lanes, with a WhatsApp briefing the day before. Private option includes riad pickup; monument tickets are separate.

Check Availability

Prices, ratings and details are the platform's own. Dollar figures are the listed prices. The platform bills in your account's currency.

Is Homosexuality Legal in Morocco?

No. Article 489 of the Penal Code punishes with imprisonment of six months to three years and a fine of 120 to 1,000 dirhams anyone who commits a lewd or unnatural act with a person of their own sex, unless the act constitutes a more serious offence. The wording is not limited to men, and the Human Dignity Trust describes the provision as covering both men and women, with a maximum of three years in prison and a fine.

Two neighbouring articles matter to travellers. Article 490 punishes sexual relations between unmarried persons of different sexes with one month to one year in prison. Article 491 punishes adultery with one to two years, but only on the complaint of the offended spouse. France Diplomatie summarises the position for visitors in one sentence: homosexuality is considered an offence in Morocco, punishable by three years in prison, and heterosexual relations outside marriage are prohibited, with a year in prison.

Source: Moroccan Penal Code, France Diplomatie, Human Dignity Trust.

The Penal Code Articles a Traveller May Meet

Three articles of the Moroccan Penal Code that touch on relationships, with who each covers, the penalty and what it means for a visitor. Penalties are as published in the consolidated code hosted by the national treasury.

Article What it punishes Penalty For a visitor
489 Lewd or unnatural act with a person of one's own sex 6 months to 3 years and 120 to 1,000 MAD Applies to anyone on Moroccan soil
490 Sexual relations between unmarried persons of different sexes 1 month to 1 year UK: does not generally apply to visiting foreigners sharing a hotel room
491 Adultery 1 to 2 years, on complaint of the offended spouse A complaint is required

Article 489 has no published tourist exemption. The hotel-room statement from the UK concerns article 490 only.

Is the Law Enforced?

Yes, and the Human Dignity Trust says there is substantial evidence of enforcement in recent years, with reports of hundreds of prosecutions and consistent reports of discrimination and violence against LGBT people. That organisation is an advocacy group and not a government, so its figures are an attributed account rather than an official count. In 2023 the Justice Minister announced a Penal Code reform project and said homosexuality could not be legalised in a Muslim country, and civil-society groups have asked for article 489 to be repealed in any reform.

For visitors the point is that no tourist exemption exists on paper and none of the three advisories describes foreign visitors being treated differently from residents. The advisories treat the risk as real for every visitor, which is why their guidance is discretion rather than reassurance.

Source: Human Dignity Trust, Moroccan Penal Code.

What Three Governments Tell LGBTQ+ Travellers

The UK, Canadian and French advice on same-sex relations and public affection, quoted from each ministry's own Morocco page. No government advises against travel to Marrakech on this ground, and all three describe the same legal position.

Authority On the law On behaviour
UK Foreign Office "Same-sex sexual relations are illegal in Morocco." "Showing affection in public can lead to prosecution." Avoid public affection near religious sites and in tourist areas
Global Affairs Canada "The laws of Morocco prohibit sexual acts between individuals of the same sex." 2SLGBTQI+ travellers should "carefully consider the risks of travelling to Morocco". "Public displays of affection are frowned upon"
France Diplomatie Homosexuality is considered an offence, punishable by three years in prison Heterosexual relations outside marriage are also prohibited, with one year in prison

None of the three pages addresses trans or non-binary travellers separately, so the general warning is the guidance on offer.

Is Marrakech OK for Gay Travellers?

Marrakech is visited by gay travellers, and the answer rests on the law and the street rather than on the city's reputation. Marrakech handles large numbers of foreign visitors every year and hotels, riads and tour operators are used to guests of every kind. That experience does not change the law. In practice visitors describe a city where discretion in public is the norm for everyone, couples included, and where the zone of freedom is the private room.

The UK advice to avoid showing affection near religious sites and in tourist areas is the useful guide: keep it private in the medina, around Jemaa el-Fna and near mosques, and treat the quieter residential lanes with the same care. The Gueliz page describes the modern quarter, which feels the most Mediterranean of the city's districts. None of this means staying away. It means travelling the way an unmarried couple of any kind is advised to travel.

Can Unmarried or Same-Sex Couples Share a Hotel Room in Morocco?

For visiting foreign nationals the practical position is better than the law suggests. The UK says sexual activity between unmarried people and adultery are illegal for Moroccan nationals, that this includes sharing a hotel room, and that the law regarding unmarried people sharing a hotel room does not generally apply to visiting foreign nationals, particularly in popular tourist areas. The statement is about unmarried couples. It does not mention same-sex couples, and article 489 has no tourist exemption.

The sensible step for any couple is to say what you need when you book. A twin-bed room is a simple option, and a property that suits you will say so. Where to stay in Marrakech covers the areas and the choice between a riad and a hotel.

Source: UK Foreign Office.

Are Dating Apps Safe in Morocco?

The UK is blunt: using dating applications in Morocco may break laws relating to sexual relations outside of marriage, and meeting people through online applications can carry legal, personal safety and privacy risks. It adds that you should be cautious if you travel to Morocco for a relationship or to find someone you met on the internet. An LGBTQ+ travel operator, Trovatrip, goes further and advises against dating apps altogether after what it describes as an outing campaign on social media.

  • Do not arrange to meet a stranger at your accommodation
  • Do not share your hotel or room number in advance
  • Tell someone you trust where you are going and when you will be back
  • Remember the legal risk applies to the people you meet as well as to you

Is Morocco Safe for Lesbians, Trans and Solo Women Travellers?

The law applies to women as well as men, and the UK and Canadian pages add that women may receive unwanted attention or harassment, especially when travelling alone. Canada describes verbal abuse as a risk for women travelling alone. The practical measures are the same as for any woman travelling alone in the medina: loose-fitting clothing that covers arms, legs and chest, busy lanes after dark and a pre-booked transfer on arrival.

No government advisory addresses trans or non-binary travellers in its Morocco page, so the general warning on same-sex relations and public conduct is the only official guidance. Carrying papers that match the name and gender on your booking, and having a licensed guide for the first day, are sensible steps.

Source: UK Foreign Office, Global Affairs Canada, France Diplomatie.

Should You Go? A Short Decision Guide

If you are an LGBTQ+ traveller who is comfortable with discretion in public

Marrakech is workable. Keep affection private, book rooms thoughtfully and use a licensed guide for the first day.

If you are travelling as a same-sex couple and want to be openly affectionate

Morocco will not suit you, and the UK and Canadian advisories say why. Pick a destination without the law.

If you are a woman travelling alone, straight or queer

The harassment warnings apply, and a pre-booked transfer and licensed guide cover most of them. Read the safety page for Americans.

If you are a married or unmarried straight couple

The UK reading is that the hotel-room law does not generally apply to visiting foreigners, but ask the property when you book. The unspoken rules page covers hand-holding.

How Do You Reduce the Risk on a Trip?

Plan the trip around three principles: discretion in public, certainty in logistics and a trusted point of contact. Discretion means no public affection, particularly near mosques and in the medina, which is exactly the UK advice. Certainty means pre-booking the airport transfer, choosing accommodation in advance and using licensed guides, which removes most unplanned encounters. A contact means telling a friend or family member your itinerary and keeping the numbers for police, ambulance and your embassy to hand.

Before you go, read your own government's advice for LGBTQ+ travellers and the Morocco page, and consider registering your trip with your embassy. The safety and scams page lists what to do if something goes wrong, and the Marrakech tours page lists the licensed operators.

The rest of the itinerary needs no special handling. The monuments, gardens and museums on the things to do page are ordinary ticketed visits, the souks and the medina are walked in daylight with the same awareness as for any visitor, and day trips to the mountains or the coast run in small groups where nobody asks about your relationship. If a situation with the police does arise, stay calm, do not sign anything you cannot read and ask to contact your embassy or consulate.

Questions LGBTQ+ Travellers Ask About Morocco

Is it illegal to be gay in Morocco?

Same-sex acts are illegal under article 489 of the Penal Code, with six months to three years in prison and a fine. Being gay is not itself defined as an offence, and the law targets acts. The UK and Canadian pages both state it plainly.

Is Marrakech ok for gays?

Many LGBTQ+ travellers visit Marrakech and the tourist trade is used to guests of every kind, but the law still applies and the advice is discretion in public. See the section above on Marrakech for gay travellers.

Can gay couples hold hands in Marrakech?

The UK says showing affection in public can lead to prosecution and advises avoiding it near religious sites and in tourist areas. Treat public affection as off the table.

Are there gay-friendly hotels in Marrakech?

No government list exists. Some properties say they welcome all guests, so ask directly when you book, and see where to stay.

Can unmarried couples share a hotel room in Morocco?

The UK says the law on unmarried people sharing a hotel room does not generally apply to visiting foreign nationals, particularly in popular tourist areas. Ask when you book.

Is Morocco safe for lesbians?

The law applies to women and the advisories note harassment of women travelling alone. A licensed guide and a pre-booked transfer reduce exposure.

Is it safe to use dating apps in Morocco?

The UK warns they may break laws on sexual relations outside marriage and carry legal, safety and privacy risks. Be cautious.

Might the law change?

A Penal Code reform was announced in 2023 and rights groups want article 489 repealed. The Justice Minister said homosexuality could not be legalised in a Muslim country, so no change is predictable.

Plan Marrakech With a Private Guide

A private guide and a pre-booked transfer keep the day predictable. The tours page lists each operator's own calendar.

Prices are the operator's listed figures and are confirmed at checkout.

Check Availability