Hosts of the 2019 Africa Cup of Nations, Egypt will face one of the best four losers, South Africa who finished third place, in their Round of 16 fixture.
The Pharaohs qualified for the Round of 16 with a sterling record after winning their three group games against Zimbabwe, DR Congo, and Uganda.
They were set to face the best third-placed team from either group C, D, or E in their first game in the knockout rounds.
The best third-placed side from Group C was Kenya, who managed only three points with a goal difference of -4.
However, this wasn’t enough for Victor Wanyama’s team to reach the round of 16 as they lost their place to South Africa of group D, who will face Egypt instead.
The Bafana Bafana had also managed to get three points only, but had a much better goal difference than Kenya (-1).
South Africa opened their campaign with a 1-0 defeat to Ivory Coast, before winning their only game against Namibia, thanks to Bongani Zungu’s strike and their final game saw them suffer a late 1-0 defeat to Morocco.
The 1996 AFCON winners had to wait for gifts from Ghana and Mali, who both beat Guinea-Bissau and Angola, to guarantee South Africa’s presence in the round of 16.
Egypt have met South Africa twice in the AFCON before, with the Pharaohs coming out on top on both occasions in the group-stages of the 1996 tournament and finally in the 1998 final.
Should Egypt get another win over South Africa for a third time, they will face the winner of Cameroon-Nigeria clash in the quarter-finals.