Senegal reached the Africa Cup of Nations final for the second time with a Dylan Bronn own goal giving them a 1-0 win over Tunisia on Sunday in a tense last-four clash in Cairo.
With 11 minutes gone in extra time, goalkeeper Mouez Hassen pushed a free-kick against the head of Bronn and the ball went backwards into the net.
Tunisia thought they would have a chance to equalize when Idrissa Gueye handled in the box, but the Ethiopian referee reversed his original decision to award a penalty after watching replays at the VAR monitor.
Both teams missed penalties in regular time with Ferjani Sassi the Tunisian culprit before Henri Saivet failed for the Senegalese.
Liverpool star Sadio Mane began the tournament as the first-choice Senegal penalty taker but, after missing two, opted out before the quarter-finals.
Senegal will miss star defender Kalidou Koulibaly for the final against Algeria or Nigeria, who meet in Cairo later Sunday, after he was yellow-carded.
It was the second caution of the knockout phase for the Napoli center-back and triggered an automatic one-match suspension.
Tunisia's defender Dylan Bronn (R) scores an own goal during the 2019 Africa Cup of Nations semi-final match between Senegal and Tunisia at the 30 June Stadium in Cairo, Egypt, July 14, 2019. /VCG Photo
Senegal last reached the title decider 17 years ago, when current coach Aliou Cisse captained a team beaten on penalties by Cameroon in Mali.
"I congratulate (Tunisia and former Senegal coach) Alain Giresse because he left me a good group. He did a good job in Senegal," said Cisse.
"The match was incredible because of the uncertainty – it will remain in the annals of African soccer."
French soccer legend Giresse said: "We were equal to Senegal and had opportunities, but did not know how to transform them.
"I am the number one supporter of Aliou Cisse. He will become a coach who will surpass what he achieved as a player. He will win the Cup of Nations."
Mahrez stunner
Riyad Mahrez rifled in a stoppage-time free-kick to earn Algeria a dramatic 2-1 victory over three-time champions Nigeria on Sunday and set up a rematch with Senegal in the Africa Cup of Nations final.
Algeria led through a first-half own goal by William Troost-Ekong before Nigeria equalized with an Odion Ighalo penalty on 72 minutes awarded after a VAR review.
However, as extra time looked necessary, Mahrez blasted in from 20 yards with the last kick of the match to send the Desert Foxes through to their first final since lifting the trophy for the only time in 1990.
Algeria will take on Sadio Mane's Senegal for the title on July 19, in a repeat of a group stage clash they won 1-0.
Riyad Mahrez (R) of Algeria celebrates after scoring a goal with his team mates during the 2019 Africa Cup of Nations semi-final match between Algeria and Nigeria at the Cairo International Stadium in Cairo, Egypt, July 14, 2019. /VCG Photo
"We are very happy to be in the final of the Africa Cup of Nations because it is something very special," said Mahrez.
"It was our goal to do it for the people and for our families. We know they are behind us all the way. It's my most important goal for the national dream. Yes, it's my dream to win it and hopefully we will be able to."
Nigeria coach Gernot Rohr conceded Algeria were worthy winners after denying the Super Eagles the chance to compete in an eighth final.
"I have to congratulate the players for a big fight against this very good team. They won it in the last minute and they deserved it," said Rohr. "A wonderful free-kick made the difference."
An injury to Youcef Atal, who fractured his collarbone during the quarter-final win over Ivory Coast on penalties, forced Djamel Belmadi to start Mehdi Zeffane at right-back, while Nigeria fielded the same team that overcame South Africa here.
Algeria supporters filled most of the lower tier at one end of the ground, dwarfing a small section of Nigeria fans, but there were large swathes of empty seats at the 75,000-capacity Cairo International Stadium.
(Cover: Kalidou Koulibaly (L) and Cheikhou Kouyate (R) of Senegal celebrate at the end of the 2019 Africa Cup of Nations semi-final match between Tunisia and Senegal at the 30 June Stadium in Cairo, Egypt, July 14, 2019. /VCG Photo)