Morocco beat Georgia 3-0 in their last game before the World Cup finals in Qatar. Hakim Ziyech scored for the Atlas Lions from five yards inside his own half.
The Blues winger, who rejoined the Atlas Lions after a long rivalry with former boss Vahid Halilhodzic, caught goalie Giorgi Mamardashvili out of position in the first half.
Youssef En Nesyri and Sofiane Boufal, who used to play as a midfielder for Southampton, scored the final goals for the North Africans in Sharjah.
Morocco took the lead in the fifth minute thanks to a close-range header from Sevilla striker En Nesyri, before Ziyech doubled the advantage in style in the 29th minute.
Boufal scored a penalty with 18 minutes remaining after a foul on substitute Noussair Mazraoui, while Burnley winger Anass Zaroury made his senior international debut as a second-half substitute after switching from Belgium.
Morocco will begin their Group F campaign against Croatia next Wednesday, and will also face Belgium and Canada.