Burkina Faso beat 10-man Gabon on penalties to reach the quarter-finals at the Africa Cup of Nations in Cameroon following a 1-1 draw.
Ismahila Ouedraogo netted to give the Stallions a 7-6 win in the shoot-out.
Gabon had Sidney Obissa sent off midway through the second half but grabbed an injury-time equaliser when Bruno Ecuele Manga’s header went in off Adama Guira.
Burkina Faso captain Bertrand Traore had missed a penalty before slotting in the opener in the 28th minute.
The Stallions will face either Nigeria or Tunisia, who meet on Sunday evening (19:00 GMT), in the quarter-finals on Saturday, 29 January.
A mammoth shoot-out had seen Herve Koffi save from Gabon midfielder Guelor Kanga and Saidou Simpore immediately send his effort over the bar in the fourth round of penalties.
Abdoul Tapsoba had the chance to win it for Burkina Faso in sudden death after Yannis N’Gakoutou-Yapende had blazed over, but Jean-Noel Amonome denied him.
But substitute Ouedraogo kept his nerve after Gabon right-back Lloyd Palun rattled the crossbar.
It was at times a scrappy encounter in Limbe, marked by several bookings, but also a game which provided moments of quality and drama.
Burkina Faso had spurned several chances to make it 2-0 before the 90 minutes were up in Limbe, but Amonome saved well from Traore, Blati Toure, and Guira.
And the Stallions ultimately paid in the 91st minute when Ecuele Manga’s header from Denis Bouanga’s cross deflected in for a dramatic equaliser.
Abdoul Tapsoba had an extra-time goal ruled out for offside against Zakaria Sanogo, and Gabon keeper Amonome saved from Tapsoba and Ouedraogo in the second added period to send the game to penalties.