Spain advanced to the Euro 2020 quarter-finals after defeating Croatia 5-3 in a thriller of a match in Copenhagen on Monday.
Spain coach Luis Enrique made two changes with Ferran Torres and Jose Gaya replacing Jordi Alba and Gerard Moreno. Croatia boss Zlatko Dalic made two alterations with Ivan Perisic and Dejan Lovren making way for Duje Caleta-Car and Anton Rebic.
Predictably, Spain were bossing possession in the opening stages and came close in the 16th minute. Pedri dribbled past Luka Modric and played a through-ball into Koke but his tame effort was saved by the right leg of Dominik Livakovic.
Croatia took the lead four minutes later completely against the run of play when Pedri played the ball back to goalkeeper Unai Simon with the La Roja shot-stopper inexplicably letting it past him and into the box after failing to control the ball for a horrific own goal.
Spain equalised in the 38th minute. Croatia failed to clear their lines from a cross and Gaya had the initial shot with Livakovic parrying into the path of Pablo Sarabia, who fired into the back of the net.
Scroll through the gallery to see the kits that will be on display at Euro 2020
Enrique's side went in front in the 57th minute. Torres delivered from the left and Cesar Azpilicueta got goalside of his marker before heading past Livakovic for his first international goal.
Torres turned from provider to goalscorer in the 76th minute when a brilliant diagonal found him in acres of space down the right and he advanced on Livakovic before slotting calmly through his legs.
But in dramatic fashion, Croatia scored twice in the last five or so minutes to send the game into extra-time when they looked dead and buried. First, Modric cut back a cross from the byline near the post with Andrej Kramaric poking the ball over the goalline. And then the two substitutes combined as Mislav Orsic whipped in a terrific ball from the left for Mario Pasalic to glance into the bottom left-hand corner.
However, the momentum swayed one more time as La Roja scored two excellent goals in extra-time to secure their progression. Alvaro Morata got his first goal of the tournament after bringing down Dani Olmo's cross from the right at the back post expertly before firing on his left-foot into the roof of the net. And then a swift counter-attack resulted in Olmo crossing in behind the Croatian defence on the ground for Mikel Oyarzabal to slot past Livakovic on his left foot for the icing on the cake.