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
-
Bright Simons: Is the World Bank saving or harming Ghana?
11 mins -
CAF Cup: RS Berkane banned from entering Algeria because of a map of Morocco with its Sahara
27 mins -
The media isn’t doing what is expected of journalism – Sulemana Braimah
41 mins -
Truck driver who caused train accident jailed 6 months
51 mins -
Music review: Okyeame Kwame proves rap dexterity on ‘No Competition’
57 mins -
How a 23-year-old fooled the internet with an AI Kendrick Lamar diss track
1 hour -
No man should be intimidated by the strength of a woman – Charlotte Oduro
1 hour -
Ghana is not immune to terrorist attack – National Security
1 hour -
WAFU B U-17 Championship: Ghana drawn in Group A, face Benin and Cote d’Ivoire
2 hours -
Two hit by stray bullet as Police clash with ‘wee smokers’
2 hours -
Peter Amewu blames truck driver recklessness for train accident
2 hours -
Okyeame Kwame aims for another Artiste of the Year win after 15 years
2 hours -
NAGRAT gives government one-week ultimatum to redeem unpaid pensions for 700,000 workers
2 hours -
Deloitte launches Technology, Media and Telecom predictions for 2024
2 hours -
Meta AI expands to Ghana, Nigeria and other countries in Africa; adds new features
3 hours