Gabon have moved into the quarter-finals of the African Nations Championship following a thrilling 4-2 victory over Mauritania in Mangaung.
The result has seen the Panthers finish in first place place in Group D, two points above Congo DR.
Mauritania made the breakthrough with just four minutes on the clock when Moulaye Ahmed Khalil showed a clinical touch to fire past goalkeeper Bitseki Moto.
However, Gabon equalised three minutes later as Duval N'Zembi headed in after Moto's opposite number Boubacar Toure had failed to deal with a cross.
Daniel Cousin hit the post for Gabon 10 minutes before half time, and they were made to pay on 64 minutes thanks to Moulaye Ahmed's calm finish as Mauritania regained the lead.
Gabon nearly got themselves level with 15 minutes left on the clock, but Romuald Ntsitsigui rattled the crossbar with his effort.
Needing a goal to reach the last eight, Gabon found the net with four minutes left when Aaron Ondele got on the scoresheet with a powerful header.
They then clinched the victory deep into stoppage time as Bonaventure Sokambi scored two goals in quick succession, the latter of which was from the penalty spot.
No Data Analysis info