Hakim Ziyech converted a penalty at the 10th minute to open the scoring for the Atlas Lions. Gabon had the opportunity to equalize at the 16th minute on penalty, but Pierre-Emerick Aubameyang’s ball hit the post.
A second penalty, awarded to Morocco following a foul on Soufiane Rahimi, allowed Ziyech (26th) to score his second goal of the night.
The Panthers of Gabon reduced the score five minutes before the end of first half through Aubameyang on penalty.
In the second half, Brahim Diaz scored the third goal at the 59th minute, before substitute Ayoub El Kaabi scored the fourth goal for the Atlas Lions.
Morocco, already qualified as host country, is housed in Group B alongside Gabon, Central African Republic and Lesotho.
The final phase of AFCON-2025 will take place from December 21, 2025 to January 18, 2026 in Morocco.