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
-
KNUST, University of Rwanda share experiences in implementation of Mastercard Foundation Scholars Program
15 mins -
Top 10 most visited tourist sites in Ghana 2023
18 mins -
Cecilia Dapaah case: My government will reopen investigation into alleged acts of corruption – Mahama
23 mins -
GRA boss charges customs officers to be professional ahead of 2024 general elections
42 mins -
NPP thanks stakeholders for successful Ejisu by-election
43 mins -
Bawumia promises to involve chiefs in licensing miners if elected President
47 mins -
Koda should have visited the pastor to avert the prophecy – Ajagurajah
1 hour -
Emotional support alligator taken and released in swamp
1 hour -
A mate is a mate, Bawumia can’t be in the driver’s seat – NDC Communicator
1 hour -
Over 400 million Google accounts have used passkeys, but our passwordless future remains elusive
1 hour -
Kwame Nkrumah Memorial Park surpasses Aburi Gardens as most visited site in 2023 – GTA
1 hour -
Third IFC EDGE Students Design Competition opens in Ghana
2 hours -
Baidoo: Disgraceful maltreatment of the Black Princesses must stop
2 hours -
Telecel Ghana commits to community collaboration during Western Region tour
2 hours -
Chieftaincy Ministry shouldn’t have written the letter – Atuguba on Akufo-Addo-chiefs saga
2 hours