Morocco isn’t accepting of the LGBT community.
Article 489 of the Penal Code of Morocco criminalizes “lewd or unnatural acts with an individual of the same sex.”.[2] Same-sex sexual activity is illegal in Morocco and can be punished with anything from 6 months to 3 years imprisonment and a fine of 120 to 1200 dirhams.[3][4] However, the law is sporadically enforced by the authorities,[4] with a degree of tolerance extended to homosexuality in the holiday resorts like Marrakesh.[4] Oftentimes these relationships are a form of prostitution, involving tourists. The legal status of LGBT people living in Morocco stems largely from traditional Islamic morality, which views homosexuality and cross-dress as signs of immorality.[5]
Morocco has a macho culture, with rigid gender roles that requires a male, regardless of his sexual orientation, to get married and have children.[7] The government has also reportedly stepped up its crackdowns on homosexuality with several public arrests.
Fortunately, it looks like their king is attempting to make some changes.
In 2010, the government permitted openly gay singer Elton John to gave a performance during the Mawazine Festival, despite objections from the Justice and Development Party, which is the biggest opposition party in the parliament [2]. The festival was sponsored by King Mohammed VI and is part of the king’s broader plan to create a more open and modern nation [3].
Source