It was a very tight call on the night as they both cancelled each other out but Ivory Coast proved more threatening on the attack with Nicholas Pepe and Wilfried Zaha flanking the Egyptians.
The game needed penalties to settle the scores as extra time was not even enough for the two contenders.
The Egyptians had a solid defence as they try to force a counter-attack on occasions in order to hurt the Ivory Coasts.
Mohamed Salah scored the final kick for perfect penalties for the Egyptians but Eric Bailly's miss cost the Ivorians the match as it was the only miss in the shootout.
Pepe was the first taker which executed to perfection as he sent the keeper the wrong way.
Next is Zizo for Egypt, he also showed his professionalism as he opted for power over placement as he roofed the ball into the net.
Sangaré scored next for Ivory Coast to make 2-1
Amr El Solia levelled it at 2-2
Eric Bailly lost the penalty as El Shenawy pokes the ball to the crossbar and caught it afterwards.
Now Egypt overtook Ivory Coast with Kamal Sayed scoring his own kick to make 2-3
Maxwell Cornet scored to level it back at 3-3.
Mohamed Abdelmonem sent Egypt back ahead with a powerful shot into the net.
Wilfried Zaha sent Ivory Coast back into contention with a 4-4 scoreline.
Mohamed Salah sent Egypt straight into the quarterfinals as Bailly's miss came back to hurt Ivory Coast on the night.