The Moroccan penal code stipulates 6 months to 3 years imprisonment for homosexuality. According to official figures, 197 people were prosecuted under this act in 2017.