Spain slipped to a 2-1 defeat to Egypt as the Pharaohs claimed top spot in Group C at the Paris Olympics.
One of the favourites for a medal at the Games, Spain were ultimately second best for much of Tuesday's contest in Bordeaux.
Ibrahim Adel's double put Egypt in control, before a powerful header from Samu Omorodion in the 90th minute teed up a grandstand finish.
Yet Spain, who had earlier hit the woodwork, could not capitalise on 10 minutes of added time to find an equaliser.
It means Egypt top the group with seven points from their three fixtures, while Spain progress in second place, with the other match between Uzbekistan and the Dominican Republic having finished 1-1.
Egypt will face the runner-up of Group D, which could be any of Japan, Paraguay, Mali or Israel.
Spain will face whoever finishes top of that group, with that a straight battle between Japan or Paraguay.
Data Debrief: Zizo and Adel steal the show
Zizo was Egypt's creative fulcrum, playing five key passes, including a superb assist for Adel's second.
Adel, meanwhile, scored his two goals from 1.22 expected goals (xG), showing great composure for his second finish as he knocked a cute effort around advancing Spain goalkeeper Alejandro Iturbe.
LATEST STORIES
Jaydon Hibbert honoured and 'humbled' with inaugural JOA Olympic Spirit Award
- 2024-11-17 17:06:00
- Hits 828
JOA awards cash rewards to Olympic medalists, unveils JMD$300m investment for LA 2028
- 2024-11-17 06:44:46
- Hits 810
CANOC President Keith Joseph praises Julien Alfred, extends best wishes ahead of World Athletics Award decision
- 2024-11-13 06:31:29
- Hits 761
Olympians Campbell, Pinnock and Ricketts, express gratitude and optimism following JOA Olympic Salute
- 2024-11-18 16:17:30
- Hits 461
Julien Alfred reveals she almost withdrew from Olympics due to pressure
- 2024-11-08 06:42:06
- Hits 321