Ivan Perisic hits dramatic winner that makes Spain pay penalty
Spain 1-2 Croatia
Ivan Perisic's late goal saw Croatia come from behind to beat defending champions Spain and advance to the knockout stages of Euro 2106 as Group D winners.
Alvaro Morata's early strike gave Spain the lead, but Nikola Kalinic equalised just before half-time before La Roja defender Sergio Ramos saw a penalty saved midway through the second half.
Croatia snatched the points three minutes from time when Perisic finished past David de Gea at his near post.
The 2-1 defeat means Spain finish second to Croatia and will meet Italy in the round of 16 on Monday in a repeat of the 2012 final.
Morata opened the scoring in the seventh minute as he stole in to poke home Cesc Fabregas' effort from virtually on the goal-line.
Morata wasted a chance with a poor touch having been slipped in by Fabregas just before the break and Croatia made them pay as they levelled on the stroke of half-time when Perisic crossed for Kalinic to flick home past De Gea.
Spain were awarded a penalty as Andres Iniesta's lofted pass into David Silva led to the Manchester City man going down under pressure from Sime Vrsaljko.
Danijel Subasic saved Ramos' penalty, although it led to more controversy as the goalkeeper was almost six yards off his line by the time the Real Madrid man struck his effort.
Croatia ended the night as group winners as Kalinic found Perisic, whose low drive beat De Gea.