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
-
Erastus Asare Donkor and Dr Neta Parsram win big at 10th Mining Industry Awards
13 mins -
Government is “suppressing information” about power sector challenges – IES Director
20 mins -
Majority of our debts caused by forex shortfall – ECG Boss
47 mins -
Pan-African Savings and Loans supports Ghana Blind Union with boreholes
1 hour -
Bole-Bamboi MP Yussif Sulemana donates to artisans and Bole SHS
1 hour -
Top up your credit to avoid potential disruption – ECG to Nuri meter customers
2 hours -
We’ll cut down imports and boost consumption of local rice and other products – Mahama
4 hours -
Prof Opoku-Agyemang donates to Tamale orphanage to mark her birthday
5 hours -
Don’t call re-painted old schools brand new infrastructure – Prof Opoku-Agyemang tells gov’t
6 hours -
Sunon Asogli plant will be back on stream in a few weeks – ECG
6 hours -
ECOWAS deploys observers for Dec. 7 election
6 hours -
73 officers commissioned into Ghana Armed Forces
6 hours -
Impending shutdown of three power plants won’t happen – ECG MD
6 hours -
Ghana shouldn’t have experienced any ‘dumsor’ after 2017 – IES Boss
7 hours -
Lamens flouted some food safety laws in re-bagging rice – Former FDA Boss Alhaji Hudu Mogtari
8 hours