Two first-half goals from Herve Renard’s men were enough to subdue the Europeans in their first preparatory game ahead of the Fifa World Cup in Russia.
Hakim Ziyech's penalty in the 29th minute opened the scoring for the north African nation before Dusan Tadic's restored parity for the Eagles eight minutes later.
With five minutes remaining before half-time, Ziyech assisted Yeni Malatyaspor forward Khalid Boutaib for the Atlas Lions' match-winning goal.
And the Juventus defender who was in action for the entire duration of the encounter has left an advice for his team who are yet to lose since 1-0 defeat to Finland on January 9, 2017.
Morocco will continue preparation for their fifth World Cup appearance with a game against Uzbekistan at the Stade Mohamed V on March 27.