The Atlas Lions' goals were scored by Youssef En-Nesyri (30th, 55th), and Sofiane Boufal (35th).
This match is part of the national team's preparations for the 2023 AFCON, scheduled from January 13 to February 11 in Côte d'Ivoire.
The national team, which kicks off its CAN campaign against Tanzania on January 17, is drawn in Group F, which also includes DR Congo and Zambia.