To kick off Egypt's Africa Cup of Nations campaign, Mohamed Salah scored the game-winning goal against Guinea-Bissau.
The Pharaohs rode their luck, however, as Mama Balde's stunning late equalizer for the Djurtus was ruled out by a video assistant referee review. Egypt, who lost their Group D opener 1-0 to Nigeria, hit the crossbar three times in a game that they largely dominated.
Salah scored on a volley with 21 minutes remaining to secure a crucial victory in Garoua.
The Liverpool forward unleashed a first-time left-footed effort from the edge of the six-yard box that flew past Guinea-Bissau goalkeeper Jonas Mendes' outstretched hand.
Balde cut in from the left and curled a shot just inside the right-hand upright in the 82nd minute, but the forward was adjudged to have fouled Egypt defender Omar Kamal in the build-up.
Egypt goalkeeper Mohamed El Shenawy had to punch away a half-volley from Moreto Cassama in injury time to secure the victory, which moves the North Africans to second in Group D, three points behind Nigeria but two points ahead of Guinea-Bissau and Sudan.