Is Morocco safe for LGBTQ+ visitors?
The short answer
Same-sex sexual activity is illegal under Article 489 of the Penal Code — 6 months to 3 years. The law is actively enforced: 838 prosecutions between 2017 and 2020. Visitors who travel with discretion — no public affection, caution with dating apps, tourist-facing cities and international accommodations — travel safely. Penal code reform is under discussion but Article 489 repeal has not been committed to.
This question deserves honesty, not comfort. So here it is, as clearly as we can give it.
Same-sex sexual activity is illegal under Article 489 of the Penal Code — six months to three years, plus fines. The law applies to everyone: Moroccan, foreign, men, women. It is actively enforced. Between 2017 and 2020, there were 838 prosecutions. Transgender individuals face further exposure under Article 283 covering public decency. These are not forgotten laws gathering dust.
Public attitudes align with the legal framework. In recent surveys, a large majority of Moroccans said they would not want a homosexual neighbour. This reflects deep consistency between Islamic social values and cultural norms. Younger, urban Moroccans show somewhat more openness, but the shift is slow, mostly private, and far from mainstream.
That said — many LGBTQ+ travellers visit Morocco every year and fall in love with the place. The practical reality is that discretion is essential, not optional. No public affection (which, as it happens, applies to all couples here). No assumptions about how anyone around you feels. Caution with dating apps — a 2020 campaign used them to identify and out LGBTQ+ Moroccans. Tourist cities — Marrakech, Essaouira, Agadir — are more relaxed than smaller towns. International hotels and well-established riads in these areas welcome LGBTQ+ guests without a second glance. Booking a double room as friends raises exactly zero questions.
There are signals of movement. Justice Minister Ouahbi announced penal code reform in 2024, with indications toward decriminalising sex outside marriage in private — though no commitment on Article 489 itself. In July 2024, King Mohammed VI pardoned journalist Suleimán Raisuni, convicted under related charges, which some read as a moderating signal. LGBTQ+ organisations inside Morocco continue to push for repeal.
The honest position: Morocco is extraordinary and worth experiencing. But the legal and cultural landscape is what it is right now, not what we might wish it to be. Discretion here isn't a suggestion — it's how you keep a wonderful trip wonderful. Come with open eyes and you'll find depth, beauty, and warmth that few places on earth can match.