Is homosexuality legal in Morocco?

Illegal

Same-sex sexual activity is a criminal offence.

Morocco is one of 56 countries classified “Illegal” for same-sex sexual activity — 25% of the 226 with data. (Also searched as homosexuality.)

Source

Taken from
Wikipedia: LGBTQ rights by country or territory
Last checked
15 September 2026
How it was classified
Read directly from the source’s own table, without interpretation.

Nearby countries

Mauritania
Death penalty possible Same-sex sexual activity is a criminal offence that can carry the death penalty.
Portugal
Legal Same-sex sexual activity is legal.
Algeria
Illegal Same-sex sexual activity is a criminal offence.
Spain
Legal Same-sex sexual activity is legal.
Mali
Illegal Same-sex sexual activity is a criminal offence.
Senegal
Illegal Same-sex sexual activity is a criminal offence.

Other laws in Morocco

Age of Consent
18+
Sex Work
Illegal
Pornography
Illegal
Marriage Age
18+

Every law in Morocco → · Where is homosexuality illegal? →

A visual reference compiled from Wikipedia’s law-by-country articles, not legal advice. Laws change and summaries simplify — check a primary source before relying on anything here.