Tin Jedvaj's stoppage-time strike earned Croatia a thrilling 3-2 victory over Spain in Zagreb to set up a winner takes all Nations League clash with England.
Victory at Wembley on Sunday will earn Croatia a place in the inaugural finals of the tournament after the World Cup runners-up responded from two Spain equalisers.
Andrej Kramaric put Croatia in front after 54 minutes, but Spain levelled through Dani Ceballos within two minutes.
Jedvaj restored the lead, only for Sergio Ramos to convert from the penalty spot after 77 minutes when Sime Vrsaljko was ruled to have handled in the area.
Both sides sought a winner, but it was Jedvaj who netted three minutes into added time for Croatia to move on to four points, alongside England and two behind Spain.
Spain won the reverse fixture 6-0 in Elche in September and a goalless draw with England last month meant Croatia were still seeking their first goal of the competition.
That almost changed after just six minutes when Ivan Rakitic released Ivan Perisic down the left.
Perisic cut in on to his right foot and hit a low shot which David de Gea turned on to the post.
Next Perisic fizzed a cross towards Kramaric, but the striker could not get a decisive touch to send it goalwards.
Spain were second best. Isco shot from the edge of the area, but Lovre Kalinic made a comfortable save to turn the ball over.
Croatia capitalised on poor Spanish defending nine minutes into the second half.
Ramos put Sergi Roberto under unnecessary pressure on Spain's right flank and the Barcelona right-back's lofted pass was intercepted by Perisic.
His header forwards fell kindly for Kramaric and the striker kept his composure to finish well.
The lead did not last long. Iago Aspas fed Isco in the left side of the box and the Real Madrid playmaker centred for Caballos, who showed desire to turn the ball in.
Rakitic tore through the Spain defence only to blast wide before the visitors spurned a chance to take the lead.
Kalinic lost Roberto's cross and Aspas lifted the ball on to the top of the crossbar from close range.
Frantic defending saw Isco thwarted after fine interplay with Caballos. Marco Asensio next had an effort blocked.
Having absorbed the pressure, it was Croatia who scored next when Luka Modric's pin-point cross was converted at the back post by Jedvaj.
Ante Rebic had an effort stopped by De Gea, who saved with his legs.
Alvaro Morata was next to be denied. Kalinic saved Isco's shot up into the air and Morata tried to send the rebound goalwards only for Vrsaljko to clear on the line.
Within moments, Spain had a penalty when Vrsaljko was adjudged to handled and Ramos scored.
The attacks continued, with Kramaric running at Spain. But he opted to shoot, rather than free Perisic.
There was still time for Croatia and substitute Josip Brekalo made space for a shot which De Gea saved, but only as far as Jedvaj, who netted to spark celebrations.