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.
|Cowboys top Eagles in OT behind stellar Cooper display|
|AC Milan evaluating Fabregas signing – Leonardo|
|WATCH: Steelers´ chance at game-tying field goal slips away|
|Hayne will plead not guilty to charges, says lawyer|
|Boca boss Schelotto: The only thing I feel is sadness|
|Cardinals´ Fitzgerald makes NFL history with most receptions for one team|
|River Plate´s Copa Libertadores star Gonzalo Martinez confirms January departure|
|Klopp: I was never worried about Salah´s form|
|Packers QB Rodgers sets NFL record for most passes without an interception|
|World Cup bulking hampered Man United form – Lukaku|
|Leonardo rules out Ibrahimovic Milan return|
|Warriors´ Green to return against Timberwolves|
|I feel for him… we´ll make it work – Butler responds to Embiid´s frustration|
|Torino draw no missed opportunity for misfiring AC Milan, claims Gattuso|
|We´ll always be linked together forever - Wade reflects on playing with James before final match-up|
|O´Sullivan wins record seventh UK title|
|Chiefs secure playoff berth, Saints win NFC South|
|River Plate 3 Boca Juniors 1 (aet, 5-3 agg): Quintero and Martinez clinch Libertadores title in extr|
|WATCH: Chiefs QB Mahomes throws no-look pass|
|Dolphins defeat Patriots on miraculous final play|
|Kizzire eagle snatches QBE Shootout victory|
|AC Milan 0 Torino 0: Donnarumma shines, Cutrone misses late chance|
|Back to the drawing board for West Indies - Chase|
|Copa Libertadores: Messi and Griezmann among stars in Madrid for River-Boca Superclasico|
|Brady sets NFL record for most career TD passes|
|Copa Libertadores: Tevez named on Boca bench for Superclasico final|
|Premier League needs VAR, right now! - Benitez fumes over Dean´s decisions|
|McCall expects Itoje to fit for the Six Nations|
|Solari salutes Real Madrid character after ´ugly´ Huesca win|
|Berbatov defends under-fire Lukaku|
|Sarries crush Blues to maintain unbeaten start|
|Newcastle United 1 Wolves 2: Doherty punishes Yedlin red with late winner|
|Deeney jokes he´ll ´smash´ former Watford star Richarlison|
|Huesca 0 Real Madrid 1: Bale ends drought as Solari´s men edge to victory|
|Ponting: Umpires not looking at no-balls|
|Bale ends longest LaLiga goal drought|
|Porter backs Brees for MVP, Saints for Super Bowl|
|Verstappen eyeing 2019 title fight|
|Wall ´shouldn´t have played´ against Cavaliers after scoring just one point|
|Hazard: Man City the best team in the Premier League despite Chelsea win|
|LeBron explains why he gave a Grizzlies employee his game-worn shoes|
|Bangladesh cruise to ODI victory as seamers punish Windies|
|Football will win over violence, claims CONMEBOL president|
|Alcorcon support Reus Deportiu over unpaid players|
|Saponara explains cheeky celebration after last-gasp leveller|
|Godin and Filipe Luis return to Atletico training|
|Kick It Out condemns alleged racist abuse of Sterling|
|Emotional Oosthuizen clinches South African Open title|
|The Sunday Seven - 7 Key Opta facts for NFL Week 14|
|Martino salutes Atlanta´s grand plan|
|India´s tail must show greater application - Bangar|
|Mourinho: Diogo Dalot can be new Gary Neville|
|Sterling hits out at media coverage of black players|
|Lyon roars with defiance as Australia aim for unlikely victory|
|Bulls coach Boylen: Hooked starters ´embarrassing´ in record loss|
|Martinez pays tribute to Martino, Almiron after MLS Cup glory|
|LeBron: Final Wade matchup will be bittersweet|
|Alvarez-Kovalev rematch set for February 2|
|Newcastle Jets 2 Brisbane Roar 0: Sheppard, Jair score first A-League goals|
|India close in on victory in first Test|
|LeBron flirts with triple-double as Lakers down Grizzlies|
|Lomachenko unifies WBO, WBA titles with win over Pedraza|
|Joshua wants Wilder and Fury fights – Hearn|
|Mavericks rookie Doncic leads impressive fourth-quarter surge to beat Rockets|
|Martinez named MLS Cup MVP|
|Oklahoma´s Murray wins the Heisman Trophy|
|Atlanta United 2 Portland Timbers 0: Martinez scores again as Martino´s men win MLS Cup|
|Sarri to use Hazard as centre forward again|
|Ballon d´Or is a lie – Alba says Messi is world´s best|
|Messi: I needed some luck with free-kicks|