England need only a draw against Ukraine to reach the Euro 2012 quarter-finals after coming from behind to defeat Sweden 3-2 thanks to Danny Welbeck's superb winner in Kiev.
England were the better side in the first half and deservedly led through Andy Carroll's header only to be stunned by a Glen Johnson own goal and an Olof Mellberg header after the break.
But substitute Theo Walcott levelled with a powerful strike before his his cross was instinctively back-heeled home by Welbeck.
When the dust finally settles, Roy Hodgson will take huge satisfaction from the knowledge both his bold selection moves, picking Carroll and introducing Walcott, paid off handsomely.
Less palatable will be replays of the atrocious defending that forced England to launch their memorable fightback after a half-time lead turned into a deficit as Mellberg twice took advantage of opponents' slackness to put Sweden in front.
There was no sign of the drama to come during a drab first half.
Scott Parker brought a decent save out of Andreas Isaksson after Welbeck rolled an inviting lay-off into his path. Welbeck guided a header wide from James Milner's cross too.
Sweden had a few half-chances and Sebastian Larsson brought a decent save out of Joe Hart.
However, with Zlatan Ibrahimovic enduring one of those evenings when English fans wonder what the fuss is all about, Sweden seemed to be there for the taking.
The opportunity England craved was a while in coming and, as so often, Steven Gerrard provided it.
From virtually the identical position he created Joleon Lescott's goal in Donetsk on Monday, the skipper launched another inviting cross to the far post.
Carroll got between defenders and rose majestically to power his header into the bottom corner.
Much as he may bristle at what is perceived to be the criticism of straight-forward tactics, if England are good at it, Hodgson should make no apology for playing to such strengths.
It is not as though England are incapable of incisive passing when it suits.
Cole threaded an excellent ball through Sweden's defence for Young to run on to.
A poor first touch cost the Manchester United man valuable momentum, though, and he ended up snatching at his shot, which Isaksson saved by the near post.
However, all England’s good work was undone within four minutes of the restart.
Ibrahimovic lifted the ball back into the box and picked out Mellberg, completely unmarked, eight yards out. Hart made a terrific one-handed save, only for the ball to bounce straight into Johnson, whose desperate attempt to keep it out of the net met with failure.
And having proved how adept they at scoring from deep crosses, England showed a shuddering ineptitude at defending them as Larsson drove a touchline free-kick deep into the box.
Despite so many bodies around him, Mellberg was completely on his own and gave Hart no chance from point blank range.
Hodgson took immediate action, replacing Milner with Walcott. Once again his decision was a master-stroke.
Three minutes later, Walcott, hanging back at a Gerrard corner, collected the loose ball from a Sweden clearance, and with defenders and attackers merging in a frenzy of movement to retake their positions, fired through the lot.
Isaksson, unsighted, was totally deceived and could only watch helplessly as the shot flew past him, only a few inches away but completely out of reach.
It was Walcott's first goal since that hat-trick in Croatia almost four years ago - and probably his best international performance too.
The goal blitz had squeezed the contest completely out of shape.
Even though both sides could still advance with a last-game triumph as things stood, neither were prepared to settle for it.
Hart shovelled Ibrahimovic's shot wide before England countered and got their winner.
Walcott can be infuriating at times. Not this evening though. And when the Arsenal man drove toward the by-line, he pulled a cross back to the near post, where Welbeck, instinctively, back-heeled it in for victory.
|6||Shots On Target||7|
|6||Shots Off Target||4|
Sweden: starting line-up
|1 Andreas Isaksson|
|4 Andreas Granqvist||3 Olof Mellberg||13 Jonas Olsson||5 Martin Olsson|
|7 Sebastian Larsson||9 Kim Källström||8 Anders Svensson||6 Rasmus Elm|
|10 Zlatan Ibrahimovic|
|11 Johan Elmander|
England starting line-up
|1 Joe Hart|
|2 Glen Johnson||6 John Terry||15 Joleon Lescott||3 Ashley Cole|
|16 James Milner||4 Steven Gerrard||17 Scott Parker||11 Ashley Young|
|22 Danny Welbeck|
|9 Andrew Carroll|