The preserved butter used in Moroccan cooking is smen.
Smen is a salted, fermented butter found in Moroccan and wider North African cuisine. It is made by heating butter, removing water and milk solids, salting it, and allowing it to mature. Traditional versions may be flavored with herbs or spices before being stored in a jar and aged.
As smen ferments, its flavor becomes intensely savory, nutty, and sometimes reminiscent of blue cheese. The long aging process improves its keeping quality and gives the butter its distinctive aroma. In Morocco, it may be used in couscous, tagines, soups, pastries, and the Marrakesh specialty tanjia.
Smen is related to ghee and clarified butter, but it is not simply interchangeable with either one. Ghee is clarified butter with most water and milk solids removed, while Moroccan smen is characteristically salted and fermented. The terms samneh, sman, semn, and sminn refer to related regional forms, especially elsewhere in the Middle East and North Africa.