Just posting this as quick as I can as Scott's Cheap Flights believes this is a mistake fare (meaning it may only last a short period). Dates are July to September. Fares include bags, meals, and seats etc. All flights stop in Doha for a couple of hours. Normal fares for this trip are double the price.
Book directly via Google Flights or find the cheap dates and book via Momondo, Skyscanner etc.
Update: Also available to Marrakesh for $749. Google Flights - Momondo
We are the most popular bargain site in Morocco :). In any case, Morocco is at the very northwest tip of Africa close to the Spanish border so this could be a good indirect way to travel to Europe. I'd highly recommend taking a boat ride from Morocco to the Rock of Gibraltar and onwards to Spain. Check out Vox's Borders Series on the Rock of Gibraltar, Europe's only wild monkeys and Morocco.
I would love to go there but if its mistake then what happens after they discover ? They just cancel your flight ?