South Africa stunned hosts Egypt 1-0 to set up a quarter-final with Nigeria.
Seven-time winners Egypt produced a lacklustre display and were punished by Thembinkosi Lorch’s 85th-minute strike.
South Africa, winners in 1996, are through to just their second quarter-final since 2002 and will face Nigeria on Wednesday.
Egypt struggled to create chances, with their best two openings of the game both being squandered by Trezeguet, while Liverpool’s Mohamed Salah was largely kept quiet.
South Africa were the more dangerous team in the first half and Percy Tau was denied a 22nd-minute opener when his free-kick was tipped over the crossbar by Mohamed El-Shenawy.
Bafana Bafana also went close with 20 minutes to go when centre-back Thulani Hlatshwayo headed wide, but they were not to be denied.
South Africa broke quickly and Lebo Mothiba drew the last defender before squaring for Lorch to confidently sweep beyond El-Shenawy.
Egypt could not muster a response as they failed to reach at least the semi-finals at a home tournament for the very first time.
Source: Sky Sports