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 equalise when Idrissa Gueye handled in the box, but the Ethiopian referee rejected their penalty appeals after checking the incident on the VAR monitor.
Both teams missed penalties in regular time with Ferjani Sassi the Tunisian culprit before Henri Saivet failed for the Senegalese.
Senegal will miss star defender Kalidou Koulibaly for the final against Algeria, after he was yellow-carded.
it was the second caution of the knockout phase for the Napoli centre-back and triggered an automatic one-match suspension.
Senegal last reached the title decider 17 years ago, when current coach Aliou Cisse captained a team beaten on penalties by Cameroon in Mali.
Nigeria and Tunisia will battle for the bronze medals at the 2019 Africa Cup of Nations when they meet in the third-place playoff on Wednesday 17 July. Kick-off at the Al Salam Stadium in Cairo is set for 9pm CAT.
Nigeria were looking to return to the Nations Cup final on their first appearance at the tournament since 2013 (when they won their third continental title), but they were stopped short in the semis in dramatic fashion.
Their clash with Algeria on Sunday night looked to be headed for extra time (after a penalty from Odion Ighalo had cancelled out an own goal from William Troost-Ekong), but deep in injury time Riyad Mahrez sent a beautifully-struck free kick beyond the right hand of goalkeeper Daniel Akpeyi to condemn the Super Eagles to this consolation midweek clash.