Match ends, South Africa 0, Morocco 1.

South Africa will have to wait to discover whether they have qualified for the Africa Cup of Nations last 16 after Morocco scored a late winner.
Mbark Boussoufa netted from close range after a 90th-minute free-kick in Cairo.
It earned Morocco a third successive 1-0 win and sealed top spot in Group D.
With Ivory Coast beating Namibia in the other game to finish second in the group, South Africa finished with three points but could still qualify as one of four best third-placed teams.
South Africa went close through Percy Tau but struggled to create chances against a Morocco side that had already qualified for the knockout stage and always looked the more likely to score.
Achraf Hakimi hit South Africa's bar before Boussoufa found the target in the closing moments after South Africa had failed to deal with a free-kick.
'South Africa didn't get close to scoring'
Nick Cavell, BBC World Service in Cairo
Morocco knew they were already through and came out with that kind of attitude. They were happy to control and soak up the ball and attack when the opportunity arose without taking any risks.
South Africa really did struggle to get into the game. They couldn't get close to scoring.
They now must pray that four teams fail to win tomorrow to have any chance of reaching the last 16. If four teams lose they could still just edge through to the next round.
Line-ups
South Africa
Formation 4-3-3
- 22Williams
- 5Mkhize
- 14Hlatshwayo
- 2Mkhwanazi
- 18Hlanti
- 10Serero
- 12Mokotjo
- 8ZunguBooked at 31minsSubstituted forKekanaat 81'minutes
- 19Tau
- 9MothibaSubstituted forVeldwijkat 73'minutes
- 11ZwaneBooked at 18minsSubstituted forVilakaziat 75'minutes
Substitutes
- 1Keet
- 3Maela
- 4Cardoso
- 6Mphahlele
- 7Maboe
- 13Mabunda
- 16Bvuma
- 17Vilakazi
- 20Kekana
- 21Veldwijk
- 23Lorch
Morocco
Formation 4-2-3-1
- 12Mohamedi
- 3MazraouiSubstituted forDirarat 75'minutes
- 4da Costa
- 6Saïss
- 2Hakimi
- 8El AhmadiSubstituted forAït Bennasserat 54'minutes
- 14Boussoufa
- 7ZiyechSubstituted forFajrat 89'minutes
- 10Belhanda
- 16N Amrabat
- 19En-Nesyri
Substitutes
- 1Bono
- 5Benatia
- 9Boufal
- 11Fajr
- 13Boutaïb
- 15Aït Bennasser
- 17Dirar
- 18Bourabia
- 20Idrissi
- 21Abdelhamid
- 22Tagnaouti
- 23Baadi
- Referee:
- Jean-Jacques Ndala Ngambo
- Attendance:
- 12,098
Match Stats
- Possession
- Home41%
- Away59%
- Shots
- Home2
- Away11
- Shots on Target
- Home0
- Away3
- Corners
- Home3
- Away0
- Fouls
- Home21
- Away12
Live Text
Post update
Full Time
Second Half ends, South Africa 0, Morocco 1.
Goal!
Goal! South Africa 0, Morocco 1. Moubarak Boussoufa (Morocco) left footed shot from the centre of the box to the high centre of the goal following a set piece situation.
Substitution
Substitution, Morocco. Faycal Fajr replaces Hakim Ziyech.
Post update
Younès Belhanda (Morocco) wins a free kick on the left wing.
Post update
Foul by Thamsanqa Mkhize (South Africa).
Post update
Nabil Dirar (Morocco) wins a free kick in the defensive half.
Post update
Foul by Lars Veldwijk (South Africa).
Post update
Attempt missed. Moubarak Boussoufa (Morocco) right footed shot from outside the box is too high following a set piece situation.
Post update
Attempt blocked. Hakim Ziyech (Morocco) left footed shot from outside the box is blocked.
Post update
Moubarak Boussoufa (Morocco) wins a free kick in the attacking half.
Post update
Foul by Thulani Serero (South Africa).
Post update
Romain Saïss (Morocco) wins a free kick in the defensive half.
Post update
Foul by Sibusiso Vilakazi (South Africa).
Substitution
Substitution, South Africa. Hlompho Kekana replaces Bongani Zungu.
Post update
Younès Belhanda (Morocco) wins a free kick in the defensive half.
Post update
Foul by Sibusiso Vilakazi (South Africa).
Substitution
Substitution, South Africa. Sibusiso Vilakazi replaces Themba Zwane.
Substitution
Substitution, Morocco. Nabil Dirar replaces Noussair Mazraoui.
Post update
Foul by Youssef Aït Bennasser (Morocco).