Article 490 of Morocco’s penal code prohibits sexual relations outside of marriage.

88% of Moroccans Oppose Sex Outside of Marriage
80% of young Moroccans oppose sex outside of marriage.