Edinburgh airport aviation director Kate Sherry said: “Marrakech has been a destination many people have asked for”.
“We are always looking to widen our connections and ensure Edinburgh and Scotland is targeting sustainable growth opportunities as we continue our recovery".
“Retaining our connectivity is so important and we have to be flexible in our approach to keep Scotland competitive and offer choice for both leisure and business markets.”
One-way flights from Edinburgh to the Moroccan city will cost £19.99 – but only if customers book by midnight on Thursday October 21.
Earlier this month, Ryanair announced that it would add three routes from Edinburgh airport, starting in November. The airline will launch three flights per week from Edinburgh to Madrid and Paris Beauvais, and will also run twice weekly services to Palermo – the capital of the Italian island of Sicily.