Egypt have progressed to the Africa Cup of Nations quarter-finals after a 5-4 penalty shootout victory over Ivory Coast on Wednesday at the Japoma Stadium in Douala.
After a goalless draw at full-time and extra time, the Pharaohs booked a place against Morocco in the next knockout phase after successful penalty conversions by Ahmed Zizo, Amroel Soulia, Omar Kamal, Mohamed Abdelmonem, and Mohamed Salah.
Ivory Coast's penalties were scored by Nicolas Pepe, Ibrahim Sangare, Maxwel Cornet and Wilfried Zaha while Eric Bailly's effort was saved.
Earlier, Ivory Coast's pleas to have the centre referee award them a penalty in the fifth minute were dismissed. This was after a few moments of dominance, Serge Aurier made his way into Egypt's penalty box from the right-wing and came down under a challenge from Omar Marmoush.
After a challenge on Pharaohs player Mostafa Mohamed, Bailly became the first player to be yellow-carded in the eighth minute. The Egyptian was not booked in the 11th minute when his raised arm hit Franck Kessie when they vied for a 50/50 aerial ball.
Marmoush was unfortunate in the 16th minute when his long drive hit the crossbar. Ivory Coast's goalkeeper, Badr Sangare - who was squarely beaten by the long-range shot - recovered to collect the ball as the Elephants survived the scare.
Sangare had to react and save Ivory Coast from going down when he tipped Salah's pinpoint hit over the bar. After a combination with Amroel Soulia, the Liverpool man created some shooting space and aimed for the top corner, but the goalkeeper's swift reaction meant no goal was registered in the game at that point.
The 2015 champions were dealt a blow in the 29th minute when Kessie had to leave the pitch injured. The AC Milan star was replaced by the experienced midfielder Serey Die as Ivory Coast switched to a more defensive approach.
Mohamed saw another of his efforts denied by the opposing goalkeeper in the 35th minute. Salah did well to beat his marker and lay the ball on the path of Mohamed, whose effort was swept out for a fruitless corner.
As Ivory Coast put the record champions under pressure, they created a fantastic chance in the 38th minute, but Sangare's final scissor kick was superbly dealt with by goalkeeper Mohamed El Shenawy before the two former champions headed back to the tunnel with the score at 0-0.
Soulia wasted a perfect opportunity to put the Pharaohs ahead when he failed to aim at the target from close range after he had received a good cross into the box by Salah in the 52nd minute. A minute later, Egypt had another chance to break the deadlock, but Sangare was alert to deal with a deflected Mohamed Elneny shot.
El Shenawy came to the rescue of the Egyptians in the 69th minute when he tipped over a point-blank header by Sebastien Haller. The Ajax forward did well to connect with another superb header by Sangare, but the Al Ahly goalkeeper read the move well and stopped the Ivorians from grabbing the opener.
Trezeguet, just after coming on for Marmoush, could not find the back of the net in the 72nd minute. The midfielder decided to go for goal - and missed the target when he had the option of passing the ball to Salah on the far end.
El Shenawy - after clashing with his teammate Abdelmonem as they moved to stop Wilfried Zaha's left-footed shot in the 84th minute - gestured that he needed to be substituted with what looked like a muscular injury. The 33-year-old was replaced by Zamalek SC's Mohamed Gabal.
The tie proceeded to extra time after both sides - who were not shy to venture forward in search of goals - failed to produce the winner after 90 minutes.
The North Africans registered the first open chance in extra time but Mohamed Sherif - who collided with Haller and needed medical attention thereafter - saw his header fly slightly over the bar.
Gabal was called to action in the 103rd minute when he had to stop Sangare's sublime long-range shot. The Elephants were unlucky not to break the deadlock with the resultant corner, as Deli's header - in a crowded box - went over the bar.
Egypt successfully booked their place in the next phase by scoring all their penalties in the shootout.