Mohamed Salah scored his second goal of the World Cup but Egypt ended their campaign pointless with defeat by Saudi Arabia at Volgograd Arena.
The Liverpool forward gave Egypt the lead with a brilliant lob over keeper Yasser Al-Mosailem in the 22nd minute.
Egypt’s Essam El Hadary, 45, became the oldest player to feature at a World Cup and saved Fahad Al Muwallad’s penalty.
However, he could not stop Salman Al Faraj’s spot-kick and was beaten again by Salem Al Dawsari with seconds left.
A fantastic penalty save and two good reaction saves from second-half headers – he might have ended up on the losing side but both he and his country will remember his World Cup debut for years to come