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
-
Mahama directs enhanced security at markets amid fire incidents
8 minutes -
Songor Lagoon dispute: Ada MP urges calm, assures residents of Mahama’s intervention
11 minutes -
Spotify and Sony Music Publishing hosts Music Publishing Camp in Ghana
13 minutes -
I’ll not compromise on the interest of Ghana – Dr Ayine
44 minutes -
Monetary finance must be eliminated – Ato Forson
55 minutes -
We’ll review, analyse, and ensure proper accountability – Jinapor on Gold for Oil policy
1 hour -
Jinapor unveils ambitious plan to revive dormant refinery
1 hour -
Breaking barriers: The inspiring tale of a single mother who achieved her PhD dreams on a foreign land
1 hour -
Afenyo-Markin walks out on Appointment Committee during Ayine vetting
1 hour -
KNUST appoints Kwasi Debrah as Digital Communications Officer
2 hours -
Volta Region to receive fair share of appointments in Mahama’s gov’t – V/R NDC Chairman
2 hours -
Timely and strategic approach to revitalise Ghana’s agricultural sector is needed – Klutse Kudomor
2 hours -
Fuel supply, financial challenges top priorities for energy sector – John Jinapor
2 hours -
We won’t engage in sole sourcing for ECG private sector participation – Energy Minister-designate
2 hours -
Photos from John Jinapor’s vetting for Energy Minister role
2 hours