Egypt secured their place in the Africa Cup of Nations knockouts by edging past Sudan 1-0 thanks to Mohamed Abdelmonem's goal.
The seven-time AFCON champions took second place in Group D behind Nigeria, who defeated them in their opening game of the campaign, and look likely to face the Ivory Coast in the last 16.
Sudan goalkeeper Mohamed Mustafa did well to deny Mostafa Mohamed but Abdelmonem got the better of him with a powerful header from the edge of the six-yard box following a corner in the 35th minute.
Mohamed Salah was unable to finish off a mazy run in the 60th minute and Amr El Soleya failed to make the most of a neat lay-off from the Liverpool attacker shortly after.
Egypt's place in the knockouts was secured after Mohamed El-Shenawy saved Mohamed Abdel Raman's free-kick and got his head in the way of Mustafa Karshoum's follow-up, warding off the threat of a dramatic fightback from Sudan.