Egypt snatched a last-gasp win over Uganda on Saturday after substitute Abdallah El-Said scored in the 89th minute.
El-Said, who was substituted on in the second half of a fairly lackluster match and normally plays for Al-Ahly, scored in one of the few strong attacking opportunities the Egyptian side had found.
The match had marked Uganda’s first appearance in the African cup of Nations since 1978.
The victory, which rewarded the Pharaohs with their first victory in the African Cup of Nations in Gabon, boosts Egypt’s chances of advancing to the next stage of the competition.
Egypt are currently in second place in Group D with four points. Last week, Egypt’s match against Mali ended with a 0-0 stalemate.
This is Egypt’s first African Cup of Nations game since 2010.