South Africa stunned hosts Egypt 1-0 to reach the quarter-finals of the Africa Cup of Nations.
Seven-time winners Egypt produced a lacklustre display and were punished by Thembinkosi Lorch's 85th-minute strike.
South Africa, the 1996 winners, 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.
The 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 first time.
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By PA Sport Staff');
ga('pacontentapi.set', 'dimension2', '148f7410-6cfd-42a0-b955-ef515fb16ec8');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:football,paservice:sport:match-reports,paservice:sport:world');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Hosts Egypt knocked out of Africa Cup of Nations'});