William Troost-Ekong’s late strike sent Nigeria into the semi-finals of the Africa Cup of Nations at the expense of South Africa.
The Udinese centre-back struck in the 89th minute to seal a 2-1 win at the Cairo International Stadium.
Samuel Chukwueze opened the scoring for Nigeria in the first half only for Bongani Zungu to level in the second half after VAR intervened.
The Super Eagles will play Ivory Coast or Algeria in the semi-finals in Cairo on Sunday.
Chukwueze opened the scoring after 27 minutes when he linked with Arsenal’s Alex Iwobi to score at the second attempt.
Zungu levelled with 20 minutes remaining when he nodded in from a free-kick and it was given after a VAR check showed the ball came off Nigeria’s Odion Ighalo before it fell to an initially offside Zungu.
But Nigeria won it with a minute left when goalkeeper Ronwen Williams missed his punch from Moses Simon’s corner to allow Troost-Ekong to bundle in the winner.
Youssef En-Nesyri scored the only goal as Morocco beat Ivory Coast 1-0 to qualify for the knockout stages at the Africa Cup of Nations.
En-Nesyri scored after 23 minutes as Herve Renard’s side made it successive 1-0 victories in Group D, following their success against Namibia in the opening match.
Romain Saiss made a superb goal-line clearance to deny Jonathan Kodjia in the opening minute before En-Nesyri brilliantly evaded a series of challenges and scored with a low finish.
Max Gradel and Nicolas Pepe worked the Morocco goalkeeper while Kodjia, who scored his side’s winning goal against South Africa, was off target this time.
En-Nesyri went close to a second goal with a header and Noussair Mazraoui also could have made it 2-0 late on but his volley crashed against the crossbar from close range.
Morocco advance while Ivory Coast’s fate will be decided in their final group game against Namibia.
Tunisia came from behind to secure a 1-1 draw against Mali in the Africa Cup of Nations Group E.
Wahbi Khazri’s deflected free-kick levelled the scores with 20 minutes moved Tunisia second in the group and ensured they have a chance of qualifying for the latter stages of the tournament.
In a relatively even game which saw 32 fouls committed, Mali retained their position at the top of the group after two games played.
Tunisia started brightly, as St Etienne’s Khazri had a shot saved and another which hit the bar during the opening 10 minutes.
After a goalless first half, Mali led on the hour when Diadie Samassekou’s corner was fumbled into his own net by goalkeeper Mouez Hassen.
The advantage only lasted 10 minutes however, before former Sunderland man Khazri sent a free-kick into the bottom corner to level.
Mali had a late chance to wrap up the three points through Moussa Marega, but his right-footed effort in front of goal was saved by Hassen.