Ghana saw their unbeaten run at the Africa Cup of Nations halted after a narrow 1-0 defeat at the hands of Egypt.
Black Stars surrendered top spot to the North African giants and will travel to Oyem to square off against DR. Congo.
The result means Egypt will face Morocco and Ghana will take on DR Congo in last-eight matches on Sunday.
AS Roma star Mohamed Salah provided the decisive moment, lashing in a free-kick through a gap in Ghana's defensive wall.
A mistake by Ghana keeper Brimah Razak presented Marwan Mohsen with a chance to double the lead but he shot over.
Daniel Amartey missed Ghana's best chance, heading wide from Christian Atsu's free-kick to the back post.
Record seven-time African champions Egypt knew a point would be good enough to take them through to the knockout stage and, after Roma forward Salah put them ahead, they were content to sit back and protect their position.
But for all Ghana's increased possession, Avram Grant's side - not helped by the loss of captain Asamoah Gyan to injury on 40 minutes - could not find the cutting edge up front to get back on level terms.
And when it appeared they might break through after Atsu's excellent jinking run had earned him a good shooting chance, the ball bobbled up off the much-criticised Oyem pitch and bounced off his shin as he took aim.
Emmanuel Badu's low drive from 25 yards brought a decent save from Egypt's 44-year-old goalkeeper Essam El Hadary, and the Nations Cup's oldest ever player was also equal to Jordan Ayew's fizzing effort late on.
Given Ghana's lack of goal threat, Grant will be concerned that Gyan's injury will rule the striker out of the match against DR Congo.
Egypt will take confidence from inflicting a first defeat on Ghana in Gabon - it was also the first goal the Back Stars had conceded at the tournament - as well as standout performances by midfielder Mahmoud Hassan and centre-backs Ali Gabr Mossad and Ahmed Hegazy.
Latest Stories
-
Ato Forson aims to be remembered for reducing prices and stabilising the economy
17 minutes -
NPP gov’t didn’t use ESLA for intended purpose, revenue mismanaged – Mahama
23 minutes -
We don’t intend to cancel Free SHS; it has come to stay – Ato Forson assures
39 minutes -
School feeding: NPP gov’t released all outstanding arrears before leaving office – Afenyo-Markin to Ato Forson
40 minutes -
Ato Forson pledges to work with new Agric Minister to implement gov’t policies
42 minutes -
Ato Forson promises to collaborate with new Agric Minister for fair cocoa prices
47 minutes -
Can Lynx Entertainment reclaim its glory?
49 minutes -
I’ll coordinate effectively with Central Bank to anchor the cedi – Finance Minister-designate
58 minutes -
Tourism Minister bid: Francis Doku vouches for Kojo Bonsu
1 hour -
OSP investigates several corruption and related cases, completes three
1 hour -
We’ve always backed road toll collection, it’ll be restored – Ato Forson
2 hours -
Oral sex identified as leading cause of throat cancer
2 hours -
We intend to establish an independent debt management office – Ato Forson
2 hours -
GJA President gives back to Alajo community
2 hours -
Photos: Ato Forson faces Appointments Committee for Finance Minister role
2 hours