Salem Al Dawsari scored with the last kick of the game as Saudi Arabia ended their World Cup campaign with a consolation 2-1 win over Egypt in Group A.
Al Dawsari's goal means that Saudi Arabia finish third in the pool on three points, while Egypt return home without a point to show for their efforts.
Essam El Hadary had earlier looked like claiming the spotlight after becoming the oldest player to ever play in the World Cup at the age of 45 years and 161 days and saving a first-half penalty from Fahad Al Muwallad.
No sooner had the veteran goalkeeper finished celebrating and he was facing another spot-kick, this time given after the lightest of shirt tugs by Ali Gabr on Al Muwallad.
Referee Wilmar Roldan was encouraged to review the decision by VAR, but the Colombian stood by his initial call giving Salam Al Faraj the chance - after a three-minute delay - to drill past El Hadary and pull his side level deep into first-half stoppage time.
Mohamed Salah - whose international future has been the subject of intense speculation this week - had earlier opened the scoring for Egypt with a fine finish, but Hector Cuper's men finished empty handed thanks to Al Dawsari's last-gasp effort.
After a largely anonymous opening 22 minutes, Salah produced a moment of quality that has been his hallmark for the past 12 months.
The winger took Abdallah El Said's long ball in his stride and then seamlessly sent a deft lob over the onrushing Yasser Al-Mosailem with his second touch.
Salah squandered an easier chance to score after breaking Saudi Arabia's questionable offside trap, lacking his earlier composure and clipping an effort wide of the right-hand post.
More haphazard defending from Saudi Arabia gave Trezeguet two quick-fire chances before the break, but both times his whipped shots bent just wide.
Saudi Arabia had offered nothing in the way of attacking threat, but were given a chance of an unlikely leveller five minutes before the interval when Fathy was adjudged to have deliberately handled Yasir Al Shahrani's cross inside the area.
El Hadary produced a stunning save to deny Al Muwallad, but his celebrations were cut short when a second penalty was awarded for Gabr's tug on Al Muwallad's shirt.
4 - Essam El Hadary has become the 4th goalkeeper to save a penalty on his World Cup debut since 1966:— OptaJean (@OptaJean) June 25, 2018
El Hadary v Saudi Arabia in 2018
Halldorsson v Argentina in 2018
Meola v Czechoslovakia in 1990
Quiroga v Scotland in 1978
Al Faraj stepped up this time to fire past the veteran goalkeeper and draw his side level.
After such a dramatic ending to the first half, it was hardly surprising that the second period started in more muted fashion.
Trezeguet planted a header narrowly wide just before the hour, while El Hadary did well to keep out efforts from Hussain Al-Mogahwi and Mohannad Aseri in quick succession.
Saudi Arabia substitute Kahraba fired straight at Al-Mosailem late on as the game appeared to be petering out to an uninspiring draw, but Al Dawsari ensured his side's campaign finished on a high with a cool right-footed volley past El Hadary in the closing stages.
Key Opta Facts:
- Saudi Arabia ended a run of 12 World Cup matches without winning (D2 L10), recording their first victory since June 1994 when they won 1-0 against Belgium.
- This was Egypt's seventh match at the World Cup without winning (D2 L5) – only Honduras have played more times at the World Cup without recording a win (9).
- Egypt goalkeeper Essam El Hadary, at the age of 45 years and 161 days, is the oldest player in the history of the World Cup, breaking the record set by Colombia’s Faryd Mondragon in 2014 (43y 3d).
- Mohamed Salah became the first African player to score in his first two appearances at the World Cup, scoring against Russia and Saudi Arabia.
- Salman Al Faraj's penalty goal for Saudi Arabia, scored after 50 minutes and 36 seconds, was the latest goal scored in the first half of a World Cup game since 1966.
- Saudi Arabia midfielder Abdullah Otayf completed 110 passes in this match, the most by an Asian player in a World Cup match since 1966.
|Ravens´ Flacco doubtful, Jackson could start|
|Richarlison: I want to be at the Copa America|
|Tabarez buoyed by inexperienced Uruguay|
|Howell fires 64 again to extend RSM Classic lead|
|I´m proud of them - Giggs still upbeat despite Denmark defeat|
|Mancini ´very sorry´ for Ronaldo absence|
|Neymar clinches anything-but-friendly win for Brazil over Uruguay|
|Cipriani-inspired Gloucester thrash Tigers|
|Djokovic makes it three wins from three at ATP Finals|
|Germany relegated from Nations League top tier to cap miserable 2018|
|Fulham will back Ranieri in January transfer window if required|
|Brazil 1 Uruguay 0: Neymar penalty settles tight contest|
|Netherlands 2 France 0: Wijnaldum & Depay decisive as Germany are relegated|
|Wales 1 Denmark 2: Jorgensen and Braithwaite seal Nations League promotion|
|Oxlade-Chamberlain targeting early return|
|New Zealand-born Aki will ´relish´ facing All Blacks – Marmion|
|Portugal cannot focus on absent Ronaldo - Santos|
|Ramsey reiterates he wants to stay with Jaguars despite cryptic tweet|
|We tried to hit a home run and it didn´t work out - D´Antoni explains Carmelo exit|
|West Ham´s Zabaleta backs Premier League´s VAR introduction|
|Southgate eyes winning end to England´s ´brilliant year´|
|Patient Zverev seizes opportunity to make amends at ATP Finals|
|Rodgers: Packers still believe they can make playoffs|
|Mahomes hoping to ketchup to Heinz´s touchdown target|
|Ranieri tells Fulham fans not to expect repeat of Leicester ´fairytale´|
|Brown to leave role as RFU chief executive|
|Croatia star Rakitic ruled out of England clash|
|Capital gains for Zverev as he secures last-four spot in London|
|Sancho rise continues with Player of the Month award|
|Jones-Buchanan, Ablett and Briscoe sign new Rhinos deals|
|Root leads from the front as aggressive England assume control|
|Croatia´s Lovren antagonises Ramos and ´rude´ Spain|
|Rakitic has ´enormous respect´ for England ahead of Nations League decider|
|Ireland make flanker switch with Leavy out of All Blacks clash|
|Pakistan rip through Black Caps in Abu Dhabi|
|WATCH: Barcelona mark 15-year anniversary of Messi´s first match|
|Sterling, that you? - Walker uses falling fan to poke fun at England team-mate|
|Fleetwood applies pressure on Molinari, Wallace leads in Dubai|
|Don´t talk to me about VAR – Rakitic not over World Cup final loss|
|Van Dijk leadership essential for Liverpool – Wijnaldum|
|Dalic: Croatia´s bench was ready to stop Spain!|
|Sublime Root century gives England imposing lead|
|Vinicius appreciates Solari influence at Real Madrid|
|Havertz would suit Bayern Munich – Kimmich|
|Wilder: Roach recruitment a sign of Fury nerves|
|Ranieri targets defensive improvements at failing Fulham|
|PSG close investigation into player recruitment practices after finding no discrimination|
|Mayweather: Nasukawa exhibition back on|
|Witsel: Joining Borussia Dortmund my best career decision|
|Ballon d´Or win would not change Modric´s ´best year´|
|Ireland v New Zealand: Opta stats behind the meeting of the world´s top two|
|The Breakdown: A statistical look at Saturday´s rugby internationals|
|Batshuayi dismisses reports of Valencia departure|
|Brazil must make Copa America final – Tite|
|Rockets rout Warriors as Green goes scoreless|
|Seahawks rally past Packers|
|Lakers G Rondo to miss 4-5 weeks|
|Durant is done with questions about Green|
|Smith, Warner set to return to IPL in 2019|
|No rivalry between Mbappe and Griezmann – Deschamps|
|Neymar: Emery will bring success to Arsenal|
|Jedvaj backs Croatia to deliver against England|
|Howell grabs first-round lead at Sea Island|
|Rooney backing Kane to break England record|
|Betts named American League MVP|
|Republic of Ireland must improve, says under-pressure O´Neill|
|Injured Sergio Ramos to leave Spain squad|
|Yelich named National League MVP|
|Low praises ´beautiful goals´ from Sane and Gnabry|
|Belgium boss Martinez pleased with patient Batshuayi|