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.
|Shepard says Giants have ´total faith´ in Manning|
|Hazard is out of this world – De Ligt enjoys Belgium test|
|Tite: Brazil were better than Argentina|
|Foley eyes World Cup after re-signing with Wallabies, Waratahs|
|Low slams decisive France penalty call|
|I fined him for his goal at Old Trafford! Giggs delighted for Wales hero Wilson|
|Matuidi lauds Deschamps´ tactical nous after Germany win|
|Scaloni excited by Argentina despite Brazil loss|
|Tsonga back in business, Dzumhur dumped out in Moscow|
|Germany suffer six defeats in a year for first time|
|Many clubs have asked about Piatek - agent|
|Bartomeu: Barca open to defensive reinforcements after Vermaelen injury|
|Bonn spoil PAOK´s landmark European game|
|Konta conquers Mertens in Moscow|
|Republic of Ireland 0 Wales 1: Wilson stunner moves Giggs´ side top|
|France 2 Germany 1: Griezmann delivers Low blow as Les Bleus reign in Paris|
|Belgium 1 Netherlands 1: Groeneveld cancels out Mertens strike|
|Argentina 0 Brazil 1: Miranda heads late winner after rivalry fails to ignite|
|Messi would struggle in this Manchester United team – Scholes|
|Falcons place Devonta Freeman on injured reserve|
|Westbrook ruled out of Thunder opener|
|Wilder´s team open to Joshua talks|
|Brentford appoint Thomas Frank as new head coach|
|England´s perfect performance sets the standard - Trippier|
|Odell Beckham Jr. needs to create headlines on the field, says Giants owner|
|Robshaw joins list of England absentees|
|Chile need goals from Sanchez despite United form - Rueda|
|Modric reveals Ronaldo respect, ´will never play with´ Messi|
|Osaka can be one of the greats, says coach Sascha Bajin|
|Liverpool´s Naby Keita carried off injured in Guinea match|
|Duminy to miss Australia tour for shoulder surgery|
|F1 Raceweek: Ferrari ready to ´challenge the impossible´ as Hamilton nears title|
|Umesh replaces injured Thakur in ODI squad|
|IAAF delay implementation of testosterone ruling amid Semenya challenge|
|Fakhar and Sarfraz lead Pakistan recovery after Lyon blitz|
|Japan see off Uruguay in seven-goal thriller|
|Arda Turan given huge fine by Istanbul Basaksehir after alleged brawl with singer|
|Busquets no better or worse than Dier – does Opta data back up Allardyce claim?|
|United boss Mourinho charged for alleged post-match comments by FA|
|Halep withdraws from Kremlin Cup ahead of WTA Finals|
|Renato Sanches eager for further Bayern Munich minutes|
|Nations League standings: Promotion, relegation and race for finals|
|Windies coach Law banned for ´inappropriate comments´ in India Test|
|Carrick denies Manchester United stars are ´not trying´|
|Ferrari struggling under pressure of chasing Mercedes, says Massa|
|Australia desperately need Smith and Warner back - Warne|
|Draxler warns Germany: Mbappe has 300 hp!|
|Draymond Green says Warriors will have to ´bring it´ every night in the West|
|England´s ´wonderful bravery´ leaves Southgate excited for the future|
|Jayasuriya: I always conduct myself with integrity and transparency|
|Northern Ireland stars hurt by lack of club football, says O´Neill|
|Rodgers inspires late Packers comeback|
|Brewers blank Dodgers to take 2-1 NLCS lead|
|Cavaliers, Nance agree to four-year extension|
|Ramos wants Spain to believe in Luis Enrique´s team|
|De Laurentiis: I´ve spoken to Genoa and agent about Piatek|
|Kaka tips bright future for Paqueta after Milan agreement|
|Suns star Booker set to return for season opener|
|Warriors coach Kerr not expecting fast start from NBA champs|
|Fultz to start for 76ers as Brown eyes NBA Finals|
|Maltese champions Valletta want Usain Bolt|
|It would have been normal to kill them! Luis Enrique slams abysmal Spain|
|Seahawks, Trail Blazers owner Paul Allen dies aged 65|
|Red Sox ace Sale released from hospital, still set for game five|
|Beer-throwing fan banned by Patriots|
|Southgate lauds ´tremendous´ attackers after famous Spain win|
|Djokovic closing in on summit as he scales new heights|
|Monaco the natural move for Henry - Martinez|
|Ending England drought a ´beautiful feeling´ – Sterling|
|Halep to face Pavlyuchenkova in Moscow comeback|