The souks of Marrakech, the bustling markets of Fes, the modern malls of Casablanca, these are the beating hearts of Moroccan commerce. For centuries, our merchants have honed the art of understanding their customers, predicting needs, and managing stock with an intuition passed down through generations. Now, as artificial intelligence reshapes global retail, Morocco is not merely observing from the sidelines, it is actively legislating its future. A significant new policy directive, spearheaded by the Ministry of Industry and Trade, aims to establish clear governance for AI applications in retail, specifically targeting demand forecasting, inventory optimization, and personalized shopping experiences.
This isn't just about keeping pace, it's about leading. The directive, which began taking shape in late 2025 and is expected to see its first enforcement phases by early 2027, mandates a level of transparency and ethical oversight for AI systems deployed by retailers operating within Morocco. Retailers, from large supermarket chains to e-commerce platforms, will be required to demonstrate how their AI models for demand prediction avoid bias, how inventory algorithms ensure fair access to goods, and critically, how personalized recommendations respect consumer privacy and avoid manipulative practices. This is a bold step for any nation, let alone one in the Global South, to tackle the complex ethical and practical challenges posed by advanced AI.
So, who is behind this ambitious move and why now? The impetus comes from a confluence of factors. Firstly, the rapid digitization of Moroccan retail, accelerated by the pandemic, has seen a surge in AI adoption. Local players and international brands alike are leveraging tools from companies like Google Cloud's Vertex AI or AWS's machine learning services to fine tune their operations. The Ministry, under the guidance of figures like Minister Ryad Mezzour, recognized the need to act proactively. “We cannot allow technology to outpace our values,” Minister Mezzour reportedly stated in a private briefing earlier this year. “Our aim is to foster innovation, yes, but also to protect our consumers and ensure a level playing field for all businesses, large and small.”
Secondly, Morocco sits at the crossroads of Africa, Europe, and the Arab world and that's our AI superpower. This unique geopolitical position means we are exposed to diverse regulatory frameworks and technological trends. The European Union's comprehensive AI Act, for instance, has undoubtedly influenced the thinking here, providing a template for robust, human-centric AI governance. However, Morocco's approach is tailored to our specific economic and cultural context, emphasizing data sovereignty and the inclusion of local businesses. The policy also seeks to prevent a scenario where foreign tech giants dictate the terms of AI adoption without local accountability.
In practice, what does this mean for the retail sector? For demand forecasting, companies will need to document the data sources used, demonstrate how historical sales data is de-biased for seasonal or cultural anomalies, and provide explanations for significant prediction errors. Imagine a major retailer like Marjane or Carrefour Morocco using AI to predict demand for dates during Ramadan, or for specific tea varieties during Eid. The new regulations will demand clarity on how these predictions are made, ensuring they don't inadvertently lead to artificial scarcity or price gouging. For inventory optimization, the focus is on preventing situations where AI might prioritize certain products or suppliers in a way that disadvantages local producers or creates monopolies. The Sahara is vast, but the data flowing across it is vaster, and ensuring that data is used ethically is paramount.
Perhaps the most sensitive area is personalized shopping. The policy will require explicit consent for data collection used in personalization, clear opt-out mechanisms, and regular audits to ensure algorithms are not creating










