Audio By Carbonatix
Iago Aspas scored a stoppage-time equaliser - with the aid of VAR - as Spain scraped an unconvincing draw with Morocco to top Group B and secure a last-16 tie against World Cup hosts Russia.
Youssef En-Nesyri - who plays in Spain for Malaga - looked to have won it for Herve Renard's side when he powered in a superb header from fellow substitute Faycal Fajr's corner.
But Aspas flicked in Dani Carvajal's low cross to make it 2-2, with referee Ravshan Irmatov initially disallowing the goal before overturning the decision.
Spain won the group on goals scored as Portugal were held to a 1-1 draw by Iran - but had a tough night.
A dreadful mix-up between Andres Iniesta and Sergio Ramos had allowed Khalid Boutaib to stride through and give Morocco a surprise 14th-minute lead.
Iniesta made amends five minutes later by helping create a sublime equaliser, exchanging passes with Diego Costa and getting to the byeline before cutting back for Isco to steer high into the net.
But Spain looked wobbly in defence when pressed by a committed, aggressive Morocco side, with Boutaib denied by the legs of David de Gea after Hakim Ziyech's quick throw sent him clear.
Nordin Amrabat was desperately unlucky not to score in the second half as his searing shot came back off the angle of post and bar with De Gea motionless.
Isco was denied a second goal when his header was diverted wide by Romain Saiss - playing instead of dropped captain Medhi Benatia - before the late drama.
Latest Stories
-
Pope calls for an end to West Bank violence against Palestinians
4 hours -
Shipping slows through Strait of Hormuz after tanker attacks, data shows
4 hours -
Why I stopped trying to quit smoking – Omah Lay
5 hours -
‘What if sharks swallow you’ – Teni warns Burna Boy over ocean stunt
5 hours -
What’s driving men to get penis fillers, despite the risks?
5 hours -
Ngah brace fires Cameroon to historic first WAFCON crown with dominant Malawi victory
5 hours -
Ariana Grande leaves problems at home as her tour hits the UK
5 hours -
‘Ghana was the crime scene’ – the country leading the demand for slavery reparations
5 hours -
Court dismisses Nana Kwame Bediako’s fresh bid to halt $14.9m judgment
6 hours -
Air India pilot’s reported cannabis test: What it can and can’t tell investigators
6 hours -
France’s top court blocks social media ban for under-15s
6 hours -
Fery wins on return as Djokovic reveals health condition after loss
6 hours -
‘Probably my last year’ – Ronaldo hints at retirement
6 hours -
Arsenal cruise to Community Shield win against disappointing Man City
6 hours -
Barcelona agree £65m deal to sign Rodri from Man City
6 hours