Seven-time Africa champions, favourites on home soil and boasting Mohamed Salah within their ranks Egypt has crash out from Africa nation cup 2019.
Orlando Pirates forward Thembinkosi Lorch was the hero in Cairo as Bafana Bafana scored on 85 minutes to give South Africa a stunning 1-0 victory over Africa Cup of Nations hosts Egypt after a pulsating last-16 clash in Cairo Saturday advance to quarter-finals.
South Africa will face arch-rivals Nigeria, who eliminated holders Cameroon earlier Saturday, in the quarter-finals.
After three woeful group performances, South Africa were rank outsiders against the record seven-time African champions.
A seesaw struggle was settled when a swift counterattack allowed Lebo Mothiba to send Lorch through and score.
Egypt had the first opportunity of the match in the fourth minute when captain Ahmed El-Mohamady delivered the ball in to the box with the ball rebounding back off Thulani Hlatshwayo straight to Mohamed Salah, whose first-time left-footed effort went inches wide of the left-hand upright
It was all Egypt at the beginning of the second half and Trezeguet should have scored in the 57th minute when Salah released him with a lovely through ball in to the box but he could only side-foot the ball first-time straight at Williams, who made a routine save.
With five minutes to go, Bafana scored what would ultimately be the winner. A brilliant counter-attack released Mothiba down the right flank, who squared the ball for Lorch before the Orlando Pirates coolly slotted the ball around El-Shenawy and in to the bottom left-hand corner.