The semifinal encounter was played at the Stade de I'Amitie in Gabon's capital city, Libreville.
The Stallions did most of the attacking in the opening stages of the game as they looked to break the deadlock against the Pharaohs, who were sitting too deep.
Razack Traore, the Burkina Faso forward, found some space outside the Egypt box in the fourth minute and he unleashed a low shot which was well saved by Essam El-Hadary.
The Pharaohs did threaten in the 38th minute when Kahraba turned and unleashed a shot on goal, but keeper Herve Koffi pushed the ball away.
With five minutes left before the break, Razack Traore beat his marker on the edge of the Egypt box, before forcing El-Hadary into a decent save.
Nevertheless, the score was 0-0 at the interval as the Stallions and Pharaohs failed to find the back of the net.
The Stallions had a chance to break the deadlock from a free-kick just outside the Egypt box, but he was denied by El-Hadary, who was well-positioned.
The oldest player to ever appear in Afcon finals, El-Hadary, 44, was having a good game for Pharaohs, who were happy to sit back and launch counter attacks.
Their strategy paid off in the 65th minute as a quick move saw Mohamed Salah scoring with an outrageous finish into the top corner from range to make it 1-0 to Egypt.