Morocco reached the last 16 of the Africa Cup of Nations with a 1-0 victory over Ivory Coast in Group D.
Youssef En-Nesyri scored the game's only goal in the first half after a clever pass from Nordin Amrabat.
Ivory Coast had gone close with just 38 seconds gone when Wolves' Romain Saiss cleared a header from Aston Villa's Jonathan Kodjia off the line.
Morocco end their group campaign against South Africa on Monday, while Ivory Coast play Namibia.
Morocco could still be caught by both Ivory Coast and South Africa, but they are already assured of at least being one of the four best third-placed teams.
As well as scoring, En-Nesyri swept a shot into the side-netting and forced Sylvain Gbohouo into a terrific save down to his left after Amrabat dummied Hakim Ziyech's low cross.
Ivory Coast, who left Crystal Palace talisman Wilfried Zaha on the bench, could have pulled level when Max Gradel was played through on goal, but Morocco goalkeeper Yassine Bounou was quickly off his line to smother the danger, before Pepe fired the loose ball into the side-netting.
Latest Stories
-
Cucumbers – Making the most of them
4 hours -
Revenue growth to slowdown to GH¢209.3bn in 2025; T-bills will not be restructured – IC Research
5 hours -
Deloitte celebrates end-of-year Thanksgiving Service
5 hours -
Inflation to end 2025 between 10% and 12% – Databank Research
6 hours -
Government’s commitment to fiscal consolidation to remain strong in 2025
6 hours -
ImageBureau, April Communications take theatre to Nsawam Prisons
6 hours -
Bird flu kills 20 big cats at US animal sanctuary
6 hours -
Your peaceful conduct saved the country from tension – Clergymen commend Bawumia
6 hours -
A Nite of 1031 Laughs & Music to provide emergency insurance for patrons
6 hours -
Body found in wheel well of United plane after landing in Hawaii
7 hours -
Ghana Armed Forces dismisses viral audio alleging ammunition transfer
7 hours -
Former Hohoe MP Bernice Adiku Heloo passes on
8 hours -
CODEO calls for re-run of Ablekuma North, Dome Kwabenya parliamentary elections
9 hours -
4,155 cholera cases with 35 deaths recorded by December 23 – GHS
9 hours -
Mothers celebrate arrival of Christmas Day babies at Ridge Hospital
11 hours