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
-
Chelsea trigger Delap’s £30m release clause
53 minutes -
Arsenal in advanced contract talks with Gabriel
1 hour -
Di Maria to return to boyhood club despite previous threats
1 hour -
Man Utd’s Amad makes obscene gesture after ‘personal abuse’
2 hours -
Over 75% of people in 17 countries support cutting methane emissions – Global Survey finds
2 hours -
GES boss commissions Smart Classrooms at Opoku Ware SHS to boost digital learning
2 hours -
Judge blocks Trump’s effort to restrict foreign students at Harvard – for now
2 hours -
UN Peacekeeper Day: Championing partnership, shaping a peaceful future
2 hours -
Two rising visual storytellers win maiden TGMA’s Creators Challenge
2 hours -
Bright Simons: When the president’s brother sues you
3 hours -
FDA embarks on anti-tobacco campaign in Ho
3 hours -
Andrew and Tristan Tate will return to UK to face charges, lawyers say
3 hours -
Chinese students find themselves caught in the US-China crossfire – again
3 hours -
One person killed after fuel tanker collides with truck in Kintampo
3 hours -
Cedi’s strength isn’t enough, businesses want predictability, says John Awuah
4 hours