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
-
T-Pain involved in hit-and-run, warns culprit he’ll find them
2 mins -
Cedi hits GH¢14.00 to a dollar; depreciates 12.08%
3 mins -
Major portions of Kasoa-Winneba road to open to traffic in 8 months
7 mins -
Kwadaso onion traders reject new location, express fear over future eviction
20 mins -
Pensions: 81% of pensioners had benefit shortfalls in 2020 – Abdallah Mashud
24 mins -
All Regional Games: Torch relay ceremony hits Oti Region
26 mins -
CSO calls for immediate removal of COCOBOD CEO from office
31 mins -
How a young female geologist’s thesis is paving the way for Ghana’s Green Mineral Future 5 decades later
35 mins -
Pensions: The last time government paid Tier-2 funds was in June 2023 – Angel Carbonu
38 mins -
Submit audited statements by May or face sanctions – Akufo-Addo warns heads of SOEs
51 mins -
Samuel Inkoom’s SIFMA hold successful football tournament
57 mins -
Propak propelling growth of Ghana’s manufacturing industry for exports
60 mins -
Academic curriculum must reflect industry needs – Stanbic Bank CEO
1 hour -
Arnold Schwarzenegger says Sylvester Stallone rivalry helped his career
1 hour -
CSOs challenge KPMG’s claim linking rise in petroleum consumption to SML
1 hour