Australia have edged a seven-goal thriller against Spain to reach the semi-finals of hockey's men's World Cup.
Trailing by two goals on the brink of half-time the Kookaburras scored four goals in less than seven minutes either side of the break to transform Tuesday's tie in the Indian city of Bhubaneswar.
But Spain battled back and the world's No.1 ranked team needed a late penalty stroke save by goalkeeper Andrew Charter to hold on to a 4-3 win.
"Being two goals down made it really hard for us, it really tested our mettle and we are proud to come away with the win," said Charter, who was named man of the match.
Of his penalty save he added: "I was just trying to calm the nerves down, take a couple of deep breaths, trying to grab the way he was going. I picked the right way so I'm happy."
Australia must now wait to see whether they face England or Germany, who meet in Wednesday's quarter-final, in the semi-final on Friday (10pm AEDT).
New Zealand, who shocked India with a penalty shoot-out win in the crossover round, lost 2-0 to Belgium, who next meet the winner of Wednesday's other quarter-final between the Netherlands and South Korea.
Spain were unexpected opponents for Australia. Third in their group behind England and India they had defeated Malaysia in a shoot-out in the crossover round.
As expected Australia dominated the opening quarter, forcing three penalty corners without success.
However, though ranked eighth in the world Spain had beaten Australia twice in the past five meetings and held the Kookaburras in the Tokyo Olympics.
And in the second quarter they stunned Colin Batch's team with two quick goals.
After 19 minutes the ball was worked to Xavier Gispert who drove into the D before unleashing a superb reverse stick shot low into the far corner.
Four minutes later, Australia having failed with another penalty corner, Spain scored again.
Pepe Cunill dribbled in from the right and his cross, via a couple of deflections, reached Marc Rescasens, who swept it past Andrew Charter.
Spain should have gone into half-time 3-0 up but could not covert a great chance 45 seconds from the break. Instead the Kookaburras halved the deficit with five seconds left. Flynn Ogilvie took a crossfield pass from Matt Dawson and cracked the ball inside the near post.
The breakthrough transformed the tie, within seven minutes of the third quarter Australia were 4-2 up.
Jake Whetton was allowed to drive in along the touchline before crossing for Aran Zalewski to score. Jeremy Hayward then converted two short corners, taking his tournament goal tally to seven.
Spain did not give up. Charter twice saved penalty corners but at the third attempt was beaten by Marc Miralles.
With less than five minutes left Lachlan Sharp received a green card, forcing him off for two minutes.
Spain quickly won a penalty stroke conceded by Zalewski's stick tackle. Charter, however, guessed right to deny Miralles and take Australia's into the semi-finals for the 12th successive World Cup, a run dating back to the 1970s.