South Africa beat hosts Egypt to book their place in the quarter-finals.
South Africa beat hosts Egypt with a late winner in Cairo to book their place in the quarter-finals.
With Egypt throwing players forward, Thembinkosi Lorch struck on the counter-attack after 85 minutes.
Mahmoud Trezeguet had the hosts' best chance, but he fired at the goalkeeper.
Egypt have followed holders Cameroon out of the tournament, while South Africa will return to Cairo to play Nigeria in the last eight on Wednesday.