Morocco's goals were scored by Reda Zahraoui, Zouhair Jebbary, Badr El Kraichly and Anouar El Abbasy.
This marks the second victory for Morocco, following an impressive 9-2 win over Belgium.
Gilberto Da Costa de Souza's men now ranks first in the standings, ex-aequo with France (6 pts).
The two teams face off again on Sunday in the third round of the Cup (18h45).