Match ends, Nigeria 3, Cameroon 2.
Holders Cameroon were knocked out of the Africa Cup of Nations by Nigeria in a five-goal last-16 thriller.
Goals from Stephane Bahoken and Clinton Njie saw Cameroon lead 2-1 at half-time after Odion Ighalo had put Nigeria ahead in Alexandria, Egypt.
But two goals in three minutes swung the game back in Nigeria's favour and set up a quarter-final with South Africa, shock winners over Egypt.
Ighalo equalised before the forward set up Alex Iwobi to hit the winner.
Nigeria had been on the receiving end of an upset in their previous game, a 2-0 defeat by Madagascar in their final group match.
Yet they produced their best performance of the tournament to end Cameroon's hopes of retaining the title they won in Gabon in 2017.
Ighalo's deflected shot gave Nigeria the lead before Bahoken side-footed the equaliser after Christian Bassogog's cross.
In an enthralling tie, Cameroon took the lead through Njie's composed finish.
Man-of-the-match Ighalo made it 2-2 with a volley after Ahmed Musa's chest down before Ighalo turned provider for Arsenal's Iwobi to slot in a dramatic decisive goal.
BBC Sport's Nick Cavell in Alexandria
For once, this was a big-name match-up that lived up to the billing, especially in terms of the goals scored and the ebb and flow of the match.
This was the best either side has played so far at the tournament and it still felt as if there was a lack of real quality from both teams. That was reflected in the first goals scored - Nigeria's was a deflected effort and Cameroon's quickfire strikes were both a result of defensive errors.
The second period was better and Nigeria looked hungrier. They also played better and their two goals both involved a lot more skill than luck.
Ighalo looked like he did in his best days at Watford, Iwobi showed the quality that Arsenal fans are crying out for and Leicester City fans may well be asking if this was the same Ahmed Musa that played for them.
For Cameroon, Andre Onana pulled off a few saves to show why he is currently the most-highly rated African keeper around, as he continued to show his form of the past season with Ajax.
Pierre Kunde did his best with his set-pieces but the quality was not there to make the most of them.
- 20AwaziemBooked at 70mins
- 15SimonSubstituted forChukwuezeat 60'minutes
- 18IwobiSubstituted forBalogunat 90+1'minutes
- 9IghaloSubstituted forOnuachuat 85'minutes
- 15KundeBooked at 28minsSubstituted forZouaat 87'minutes
- 14MandjeckBooked at 51minsSubstituted forZambo Anguissaat 62'minutes
- 7N'JieSubstituted forToko Ekambiat 70'minutes
- 8Zambo Anguissa
- 17Toko Ekambi
- Joshua Bondo
- Shots on Target
Second Half ends, Nigeria 3, Cameroon 2.
Attempt blocked. Michael Ngadeu-Ngadjui (Cameroon) right footed shot from outside the box is blocked. Assisted by André-Frank Zambo Anguissa.
Corner, Cameroon. Conceded by Ola Aina.
Yaya Banana (Cameroon) wins a free kick in the defensive half.
Foul by Paul Onuachu (Nigeria).
Attempt saved. Jacques Zoua (Cameroon) header from outside the box is saved in the bottom right corner. Assisted by Yaya Banana.
Substitution, Nigeria. Leon Balogun replaces Alex Iwobi.
Attempt missed. Stéphane Bahoken (Cameroon) left footed shot from the centre of the box misses to the left. Assisted by Christian Bassogog with a cross.
Substitution, Cameroon. Jacques Zoua replaces Pierre Kunde.
Foul by Pierre Kunde (Cameroon).
Ahmed Musa (Nigeria) wins a free kick in the defensive half.
André-Frank Zambo Anguissa (Cameroon) wins a free kick on the right wing.
Foul by Paul Onuachu (Nigeria).
Substitution, Nigeria. Paul Onuachu replaces Odion Ighalo.
Attempt missed. Odion Ighalo (Nigeria) header from the centre of the box misses to the left. Assisted by Samuel Chukwueze with a cross following a corner.
Corner, Nigeria. Conceded by Yaya Banana.
Attempt blocked. Ahmed Musa (Nigeria) right footed shot from the centre of the box is blocked. Assisted by Samuel Chukwueze.
Attempt missed. Eric Maxim Choupo-Moting (Cameroon) header from the centre of the box misses to the right. Assisted by Pierre Kunde with a cross following a corner.
Corner, Cameroon. Conceded by William Troost-Ekong.