Egypt 1-0 Uganda
Abdallah El Said scored the only goal of the game two minutes from time against Uganda to give Egypt a narrow victory in Group D.
After a drab game with few chances for either side, Mohamed Salah teed up El Said, who struck firmly past Uganda keeper Denis Onyango.
Uganda’s Joseph Ochaya earlier had a goal correctly disallowed for offside.
The win means Egypt play Ghana on Wednesday with top spot of Group D still at stake, while Uganda are out of their first tournament since 1978.
On a deteriorating pitch in Port-Gentil, seven-times champions Egypt failed to break down a resolute Cranes defence for long periods, as Onyango made an impressive clearing header to deny the onrushing Salah at the end of an otherwise lifeless first half.
Uganda began the second half brightly, forcing veteran Egypt goalkeeper Essam El Hadary to punch several set-pieces clear but ultimately failed to register a shot on target as Ochaya turned in Faruku Miya’s through ball from a clearly offside position on 52 minutes.
El Said blasted a shot well over when unmarked and Marwan Mohsen went close for the Pharaohs with a header, but Egypt appeared to be heading for their second consecutive goalless draw.
However, an otherwise quiet Salah showed great composure late on to check his shot and play in El Said with a reverse pass, the substitute’s close-range shot evading Onyango.
Uganda now face Mali in the final round of group games on Wednesday, with Mali needing a win and for Ghana to beat Egypt by two goals or more if they are to qualify.