Morocco's winning goal was scored by Brahim Diaz (90 + 3rd).
Morocco, already qualified as host country, is housed in group B alongside Gabon, Central African Republic and Lesotho.
The final phase of 2025 AFCON will take place from December 21, 2025 to January 18, 2026.