Younes Belhanda and Hakim Ziyech scored in the first half to ensure Morocco continued to show good form.
The country finished their World Cup preparations with a confidence-building 3-1 away win over Estonia in a friendly international on Saturday.
Belhanda scored after 11 minutes and Dutch-born Ziyech added a penalty seven minutes before the break.
Substitute Youssef En-Nesyri added a third with 15 minutes to go but Estonia pulled one back through Ats Purje.
Morocco beat Slovakia on Monday and drew with Ukraine last week in their other two warm-up games.
They meet Iran in their Group B opener in St Petersburg on Friday before also taking on Portugal and Spain.
Support PREMIUM TIMES' journalism of integrity and credibility
Good journalism costs a lot of money. Yet only good journalism can ensure the possibility of a good society, an accountable democracy, and a transparent government.
For continued free access to the best investigative journalism in the country we ask you to consider making a modest support to this noble endeavour.
By contributing to PREMIUM TIMES, you are helping to sustain a journalism of relevance and ensuring it remains free and available to all.
TEXT AD: To advertise here . Call Willie +2347088095401...