The USA produced a barnstorming display to thump Egypt and surprisingly reach the Confederations Cup semi-finals.
With Brazil 3-0 winners against Italy in the other Group B game, the USA, who had lost their opening two games, went through at Egypt and Italy's expense.
Egypt goalkeeper Essam Al Hadari's spilled Jozy Altidore's cross and Charlie Davies pounced for the opener.
After the break the USA upped the tempo and after Michael Bradley sidefooted in Clint Dempsey headed home the third.
Dempsey's goal ensured the USA qualified under the most unlikely circumstances and will now play European champions Spain in the first semi-final in Bloemfontein on Wednesday with South Africa up against Brazil in Johannesburg on Thursday.
Egypt were missing striker Mohamed Zidan with a hamstring injury and his replacement Ahmed Abdel-Ghani was guilty of missing several first half chances in the early exchanges.
But the USA also had several attacks before finally going ahead, with Egypt up to that point thankful to Al Hadari for keeping them in the game.
Egypt: El Hadari, Fathi (Said Ahmed 57), Said, Gomaa, Farag, El Mohamady, Shawky, Abd Rabou, Abdel-Ghani (Abu Greisha 62), Aboutreika, Eid (Hassan 50).
Subs Not Used: El Sayed, Fathallah, Khairy, Zidan, Homos, Tawfik, Moawad, Raouf, Sobhy.
Booked: El Mohamady.
USA: Guzan, Spector, Onyewu, DeMerit, Bornstein, Dempsey, Bradley, Clark, Donovan, Davies (Casey 82), Altidore (Feilhaber 69).
Subs Not Used: Howard, Bocanegra, Pearce, Beasley, Wynne, Califf, Kljestan, Adu, Torres, Robles.
Booked: Spector, Bradley.
Goals: Davies 22, Bradley 63, Dempsey 71.
Att: 23,000
Ref: Michael Hester (New Zealand).
www.bbc.co.uk