Article 489 of the Penal Code of Morocco criminalises "lewd or unnatural acts with an individual of the same sex". Same-sex sexual activity is illegal in Morocco and can be punished with anything from six months to three years' imprisonment and a fine of 120 to 1,200 dirhams. The Moroccan government uses the law as a way to police members of the LGBT+ community. When one is arrested in Morocco for a suspected homosexual act, their name becomes publicized outing the individual regardless as to whether they are homosexual or not. However, the law is sporadically enforced by the authorities, with a degree of tolerance extended to homosexuality in the holiday resorts like Marrakesh. The legal status of LGBT people living in Morocco stems largely from traditional Islamic morality, which views homosexuality and cross dressing as signs of immorality.