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.
|Valverde doesn´t care about extending Barca contract|
|Qualifying speed a ´positive surprise´ for Ferrari´s Vettel|
|I was in a different headspace – Hamilton revels in Austin pole|
|Barcelona can cope without Messi – Pique|
|Allegri: Juventus abandoned Genoa clash|
|Sale: Hospital visit was because of belly button ring|
|Valverde accepts Barcelona will miss Messi|
|No Messi or Ronaldo in El Clasico for first time since 2007|
|Barcelona have not won a Clasico without Messi since his debut|
|Ramos calls for Real Madrid unity after latest loss piles pressure on Lopetegui|
|Hamilton has title in sights after storming to Austin pole|
|Inter, El Clasico and more - the games Messi will miss with broken arm|
|End of Messi-Ronaldo duel good for LaLiga - Simeone|
|Messi out of Clasico with fractured arm|
|Awesome Ashton marks Sale bow with hat-trick|
|Klopp hopes for positive Henderson prognosis amid Liverpool injury issues|
|Benitez ´convinced´ Newcastle can survive despite seventh defeat|
|Barcelona 4 Sevilla 2: Messi injured but champions go top|
|Kovac relieved by Bayern´s timely victory|
|Strasbourg 2 Monaco 1: Sy howler and Grandsir red card cost Henry in first match|
|Leicester City defender Chilwell signs new six-year contract|
|PSG´s Tuchel hopes Verratti and Di Maria can face Napoli|
|Liverpool star Salah had no fear during scoring drought|
|Alonso´s 2019 plans not damaged by McLaren´s IndyCar decision|
|Edinburgh outclass troubled Toulon, Wasps and Bath play out thrilling draw|
|Barca concern as Messi substituted with worrying arm injury|
|Howe: South coast derby draw a fair result|
|Our heads were in Manchester – Allegri left fuming at Juventus´ loss of focus|
|Derby County 2 Sheffield United 1: Marriott blunts Blades with 77th-minute winner|
|We have so many problems – Jokanovic alarmed by Fulham defensive woes|
|Huddersfield Town 0 Liverpool 1: Salah snaps winless streak|
|Pellegrini ruing injuries after Yarmolenko hurts ankle|
|Villarreal 1 Atletico Madrid 1: Simeone´s side denied LaLiga top spot|
|Gracia: Not easy to dominate Wolves like that|
|Isner´s Finals hopes hindered by Stockholm defeat|
|Dyche incredulous at refereeing decisions in Man City thrashing|
|Juventus 1 Genoa 1: Champions´ winning run ends despite record Ronaldo goal|
|´Fantastic´ Lamela urged to find consistency by Pochettino|
|You don´t want to lose any players - Young speaks out on Wade NFL speculation|
|Championship Review: Smith gets off to a winning start, Leeds beaten|
|Guardiola hails extraordinary Fernandinho after Burnley drubbing|
|Pochettino lauds Lloris as one of world´s best after West Ham heroics|
|Paris Saint-Germain 5 Amiens 0: Ten wins in a row for PSG as Neymar rests|
|Cristiano Ronaldo nets record 400th league goal|
|Marcelo backing beleaguered Lopetegui despite Madrid slump|
|Garcia dazzles to hit the front at shortened Valderrama Masters|
|Cardiff City 4 Fulham 2: Paterson gets Bluebirds off the mark|
|Newcastle United 0 Brighton and Hove Albion 1: Benitez´s men bottom after dismal defeat|
|West Ham 0 Tottenham 1: In-form Lamela settles London derby|
|Manchester City 5 Burnley 0: De Bruyne returns in comfortable win|
|Wolves 0 Watford 2: Capoue and Pereyra turn form book on its head|
|Bournemouth 0 Southampton 0: Howe´s side stifled by Saints|
|Prove you´re crazy about Inter - Spalletti rallies players ahead of Milan derby|
|Wolfsburg 1 Bayern Munich 3: Lewandowski leads Kovac out of trouble|
|Goerges betters Bencic to clinch Luxembourg title|
|Morgan wants more from ´rusty´ England despite series win|
|Sarri says sorry after touchline bust-up overshadows Chelsea´s late escape|
|Chelsea draw an ´awful´ result for excellent United, says Mourinho|
|The Chelsea assistant that angered Mourinho - Who is Marco Ianni?|
|Steve Kerr supports Colin Kaepernick: ´I think he deserves a chance to play´|
|Lopetegui ´more motivated than ever´ amid Real Madrid sack reports|
|That´s football – Rudiger shrugs off late Ianni-Mourinho fracas|
|AC Milan´s improved mentality could be difference against Inter - Gattuso|
|Emotional Kasatkina comes back from the brink to win Kremlin Cup|
|Forget it, it´s over - Mourinho accepts apology over touchline row|
|Mourinho in furious bust-up with Chelsea staff after late equaliser|
|Chelsea 2 Manchester United 2: Barkley strike denies Mourinho|
|Raptors star Kawhi Leonard: Too early for MVP chants|
|WTA Finals 2018: Profiling the ´elite eight´|
|Cipriani sent off and facing ban for high tackle|