The Moroccans opened the scoring in the 14th minute with Khalid Boutaib taking advantage of unusual mid-field carelessness from Andres Iniesta and Sergio Ramos to mount an impressive run towards David De Gea, then sending the ball through the Spanish goalkeeper’s legs and into the net.
The Red Furies came back into the match just five minutes later thanks to a great goal from Isco, but subsequently found themselves on the defensive from a Morocco fired up with the desire to leave the tournament in a blaze of glory. A spectacular shot from Nordin Amrabat should really have put them ahead but instead found the corner of the crossbar.
A second Moroccan goal, in the 81st minute, came from Youssef En-Nesyri whose head thundered the ball past De Gea after a corner from Faycal Fajr.
It seemed that the Spaniards were groggily heading for defeat when in added time Iago Aspas put the ball into the net with a magnificent back-heel after a corner. Initially the linesman’s flag was up for offside, but after much deliberation over the VAR replay the goal was given, and moments later the final whistle signaled the 2-2 result.