Veteran goalkeeper Essam El Hadary was the hero for Egypt as he made two crucial saves in a penalty shootout to see the Pharaohs through to the 2017 Africa Cup of Nations final at the expense of Burkina Faso.
Second-half goals from Mohamed Salah and Aristide Bance had sent the semi-final clash into extra time and, when neither side could find a winner, the match went to penalties.
Herve Koffi saved Egypt's first penalty, but 44-year-old El Hadary then kept out the Stallions' last two spot-kicks to see his side through to the final with a 4-3 win in the shootout.
African football writer Maher Mezahi provided the lineups ahead of kick-off:
Maher Mezahi @mezahimaher
Egypt vs Burkina Faso teamsheets https://t.co/sSh6XPl3sR2017-2-1 17:54:23
Burkina Faso slightly edged a sluggish opening few minutes, Blati Toure forcing a save off the line after a poor clearance from El Hadary in the eighth minute.
However, Egypt slowly began to show their quality, and a bending effort from Trezeguet flew just wide of the post in the 17th minute.
Burkina Faso dominated possession but carved out few opportunities of any real note, Egypt's tight defending limiting Bertrand Traore and Prejuce Nakoulma to shots from distance.
AFCON 2017 provided the stats from the opening 45 minutes, with Burkina Faso clearly the dominant team:
AFCON 2019 @AFCON_2019
Half Time | Stats Burkina Faso 0-0 Egypt #AFCON2017 https://t.co/PNlISzr0mw2017-2-1 19:48:33
They looked even better after the break, Traore forcing a save from a free-kick just four minutes into the second half.
Bance also had a couple of half chances before the hour mark, but despite Burkina Faso's dominance, Egypt remained a threat on the break, per football writer Jonathan Wilson:
Jonathan Wilson @jonawils
Bertrand Traore starting to impose himself. Burkina Faso utterly controlling ball. But still suspect an Egypt counter-punch will undo them.2017-2-1 20:21:23
And after 66 minutes Salah found the opener, putting Egypt ahead with a sumptuous finish from the edge of the box.
Given that the Pharaohs had not conceded in their last six matches, it looked a long way back for the Stallions.
But a fine goal from Bance saw his side level 17 minutes from time. Controlled brilliantly on his chest from a looping Charles Kabore ball, the 32-year-old struck a bullet finish into the back of the net, per BBC World's Piers Edwards:
Burkina Faso continued to dominate the play to the end of 90 minutes and into extra time, but penalties always seemed inevitable.
The Stallions goalkeeper Koffi looked set to be the hero as he saved Egypt's first penalty, but he then saw his own effort palmed away to make it 3-3 with one spot-kick each to go.
Amr Warda then slotted home for Egypt before El Hadary saved Traore's penalty to send the Pharaohs into Sunday's final.