Spain took on Morocco in Group B of the 2018 World Cup at the Kaliningrad Stadium requiring a single point to guarantee progress into the knockout stages.
La Roja found themselves a goal behind when Khalid Boutaib put Morocco ahead after 14 minutes, before Isco responded five minutes later to bring the scores level.
It had looked like Morocco would steal a shock win when substitute Youssef En-Nesyri thumped a header home in the 81st minute, but more late drama saw Iago Aspas awarded a goal courtesy of VAR to hand Spain a last-gasp point and seal top spot in the group.
Relive all of the action with our minute-by-minute updates below.
© Reuters
SPAIN STARTING XI: De Gea; Carvajal, Pique, Ramos, Alba; Busquets, Thiago; Isco, Silva, Iniesta; Costa
MOROCCO STARTING XI: Kajoui; Hakimi, Da Costa, Saiss, Dirar; El Ahmadi, Boussoufa; Belhanda, N. Amrabat, Ziyach; Boutaib