England remained on course for a place in the knockout rounds after coming from behind to send Sweden crashing out of the tournament with a 3-2 victory in Kiev.
Manchester United striker Danny Welbeck scored a well-taken winner for England in the 78th minute after the introduction of substitute Theo Walcott swung a see-saw Group D battle back in his side's favour.
England had got off to a dream start when recalled striker Andy Carroll headed them into a 23rd-minute lead.
But an own goal from Glen Johnson on 49 minutes followed by a header from Olof Mellberg in the 59th minute threatened to set up a disastrous night for Roy Hodgson's side.
However, the substitution of James Milner for Walcott changed the game. The Arsenal winger lashed in a 64th-minute equaliser to make it 2-2 and then provided the run and pass which set up Welbeck's winner.
England's first ever competitive victory over the Swedes means they will qualify for the quarter-finals with only a point in their final group game against co-hosts Ukraine in Donetsk next Tuesday.
Hodgson's side had started positively, Scott Parker forcing a fine save out of Andreas Isaksson after only seven minutes with a fine swerving effort from 20 yards that the Swedish keeper parried to safety.
Sweden meanwhile had to wait until 20 minutes before threatening the England goal, captain Zlatan Ibrahimovic letting fly with a long range shot that was blocked comfortably by Joe Hart.
After successive crosses from Ashley Young and Milner failed to meet their targets, captain Steven Gerrard had clearly seen enough on 23 minutes.
Seizing possession in midfield the England skipper looked up to curl in a pinpoint long-range diagonal ball which the twisting Carroll met with a thunderous header that gave Isaksson no chance.
England's positive first half display came unstuck, however, within five minutes of the restart as a rejuvenated Sweden dominated play.
The equaliser came after an Ibrahimovic free-kick bounced back off the wall and was played back to an unmarked Mellberg being played onside by Johnson.
The centre-half's shot beat Hart and Johnson was unable to scramble out of his own net. Mellberg claimed it, but the equaliser was ruled an own-goal by Johnson.
England were rocking and it got worse for Hodgson's men on 59 minutes as Sweden went 2-1 up. Sebastian Larsson swung in a curling free-kick and shambolic defending allowed Mellberg to nod home Sweden's second.
Milner, who had capped a poor evening by conceding the free-kick which led to Sweden's second, was then promptly hauled off for Walcott.
The Arsenal winger made an immediate impact and within minutes England were level, Walcott's shot from just outside the area catching Isaksson off-balance to make it 2-2.
Sweden continued to cause England problems on the break and Ibrahimovic forced Hart to dive at full-stretch to turn around a 76th-minute effort.
But two minutes later Walcott rescued England again, darting into the box with an electrifying burst to cross for Welbeck, who flicked in a deft finish with the back of his heel to make it 3-2.