Fernando Torres put this week's controversies behind him to fire Spain ahead in the 15th minute but Zlatan Ibrahimovic levelled things up in the 34th minute with a goal that looked to have earned Sweden a share of the points.

That was until Villa, who scored a hat-trick in Spain's 4-1 win over Russia on Tuesday, struck right at the death to put his side on the brink of the quarter-finals.

Villa said: "To tell you the truth I am prouder of this goal than the three I scored the other day, I'm so happy. It's good for me to be able to be there for Spain and help win us the three points."