Senegal become only the second African side ever to make the quarter-final after this dramatic finish. They will meet either Japan or Turkey on 22 June.
103 mins: Senegal's Henri Camara wriggles through after a cheeky back-heel from Pape Thiaw and buries his shot past Magnus Hedman's right hand into the back of the net via the foot of the post for the winner.
Sweden 1-2 Senegal
102 mins: El Hadji Diouf is almost played through but the ball is too strong and Magnus Hedman gets there first.
100 mins: Sweden look very threatening down the right through the axis of Henrik Larsson and Anders Svensson.
99 mins: Pape Thiaw makes a miraculous recovery, while Mattias Jonson comes on for Magnus Svensson.
98 mins: Henrik Larsson squeezes through an unlikely gap at the by-line but is unable to get his cross in. At the other end El Hadji Diouf produces his own bit of trickery in the box but drags his shot wide. Pape Thiaw is stretchered off for Senegal.
95 mins: Sweden's Anders Svensson produces a terrific piece of skill in the area to lose his marker and unleashes a shot, which hits the left post and bounces clear.
94 mins: Amdy Faye fires over the bar for Senegal. Pape Thiaw then receives a yellow card for diving in the area. This golden goal is clearly not going to be for the faint-hearted.
93 mins: Anders Svensson is close to the winner for Sweden and after a bit of a scramble Senegal are let off the hook by an offside.
92 mins: Senegal's Pape Thiaw gets of the first shot. But it is nowhere near the goal.
91 mins: Sweden win the toss and kick-off the golden goal period. First team to score wins.
Full-time: The whistle goes, ushering in the first golden goal extra-time of the tournament. If there is still no score after half an hour it will go to penalties.
90 mins (+2): Senegal win a corner on the left but waste it by knocking it long to no-one. It is all Senegal in the dying seconds.
90 mins (+1): Henri Camara almost dribbles his way into a shooting position in Sweden's box.
89 mins: El Hadji Diouf's far-post header sails agonisingly wide.
88 mins: Zlatan Ibrahimovic is again the villain for Sweden, failing to control the ball when in space inside Senegal's area. The game has opened right up and only good defending from Sweden keeps out Senegal at the other end.
85 mins: Sweden have certainly been far more effective in the second half than the end of the first half and if anything look more like scoring.
82 mins: Golden goal extra-time is fast approaching if the score stays the same.
81 mins: Zlatan Ibrahimovic sqaunders a gilt-edged opportunity for Sweden. After a good run he opts to shoot himself instead of squareing it for Henrik Larsson, who was unmarked. The shot is pushed out for a corner.
78 mins: Pape Thiaw wins a corner on the left for Senegal but Sweden knock it clear.
75 mins: Senegal get a free-kick wide on the right after a foul on El Hadji Diouf. They win a corner after a goalmouth scramble. Meanwhile, Niclas Alexandersson is replaced by Zlatan Ibrahimovic.
73 mins: Henri Camara beats the right full-back and crosses just onto the roof of the net.
72 mins: Ferdinand Coly is booked for Senegal for a rash challenge.
71 mins: Andreas Andersson blasts high and wide for Sweden.
70 mins: Magnus Svensson whips in a dangerous cross from the left before he feeds namesake Anders, who is stopped in his tracks.
66 mins: Senegal get a free-kick right on the edge of the box. El Hadji Diouf's placed shot is tipped over by Magnus Hedman.
64 mins: Marcus Allback goes off for Andreas Andersson as Pape Malick Diop is stretchered off for Senegal.
61 mins: Ferdinand Coly gets a good cross in from the right and El Hadji Diouf rises well at the far post but handles it as the ball bounces wide of the post.
59 mins: Good run from Omar Daf on the left - he gets a cross in for Salif Diao who rather squanders the chance in front of goal.
58 mins: Sweden win a free-kick on the left of Senegal's area. Anders Svensson's ball in is headed straight back out.
56 mins: Lacklustre Swedish defending gives Senegal a couple of half chances before Anders Svensson unleashes a rocket just wide of Tony Sylva's right post.
53 mins: Anders Svensson and Marcus Allback are looking spritely for Sweden.
51 mins: Sweden build encouragingly down the right and Marcus Allback gets off a half decent shot, saved by Tony Sylva.
48 mins: Senegal concede a free-kick wide on the left. It comes to Anders Svensson, who sees his shot blocked before Niclas Alexandersson has a crack, only to slice it wide of the right post.
46 mins: Sweden know they must play with the same positivity in the second half with which they began the match or Senegal - on the basis of the last 30 minutes - will run rampant.
Half-time: Honours even at the break but Senegal are on the front foot and looking more likely to take the lead.
45 mins: Senegal are pushing right up to the whistle. Their half-time oranges will certainly taste sweeter than Sweden's.
44 mins: Pape Bouba Dioup is developing an appetite for a goal and his long-range effort forces Magnus Hedman into a save.
43 mins: Senegal rush back up the other end and from a corner Pape Bouba Dioup nods his header over the bar.
41 mins: Sweden win a free-kick about 40 yards out. Anders Svensson produces a good save from Tony Sylva.
38 mins: El Hadji Diouf shimmies free on the left and fires just over the crossbar.
36 mins: Senegal's Henri Camara takes a pass on his chest just outside the area and jinks into space before firing into the net beyond the outstretched Magnus Hedman.
Sweden 1-1 Senegal
34 mins: Sweden's Marcus Allback sprawls on the floor of Senegal's area convinced he has won a penalty after a shove from Omar Daf. The referee is unimpressed, as he is at the other end straight after when El Hadji Diouf goes down easily and is warned about diving.
32 mins: Henri Camara's outswinging corner is headed clear but after playing it about Senegal win another one. This time it goes for a goal-kick.
31 mins: Good work from El Hadji Diouf on the left for Senegal. Sweden are definitely under pressure and concede a corner on the right.
28 mins: Sweden make an increasingly rare foray into Senegal's half and win a free-kick but waste it.
26 mins: Senegal are very much on the up. Swedish keeper Magnus Hedman is forced to make a desperate punch from an attempt by Aliou Cisse.
24 mins: Senegal's Pape Bouba Diop sticks the ball in the net at the far post from a good little cross from El Hadji Diouf but the linesman is flagging furiously for offside.
23 mins: Niclas Alexandersson is bleeding profusely from a head wound after going up for a header.
20 mins: Sweden are forced into a stint of defending.
18 mins: Senegal have come back into the match and are enjoying much more possession since the goal.
17 mins: Senegal get a corner from the right. It comes out to the skipper Aliou Cisse but his long-range shot drifts wide.
16 mins: Sweden threaten again only for Marcus Allback to be ruled offside from Henrik Larsson's forward header.
14 mins: Senegal's El Hadji Diouf sets off on a dangerous run into Sweden's box and is bundled over but no penalty is given.
12 mins: Senegal win a free-kick in Sweden's half but it is cleared without fuss.
11 mins: Another corner ensues and Henrik Larsson heads into the goal at the near post.
Sweden 1-0 Senegal.
10 mins: Order is resumed and Sweden pile forward, winning a corner on the left.
7 mins: Senegal goalkeeper Tony Sylva comes racing out to parry away a Swedish cross and the ball is fired quickly down the other end for Pape Thiaw to blast it just over the bar.
5 mins: Sweden have come out looking very lively and with real belief that they can outplay Senegal, even without Freddie Ljungberg.
3 mins: Sweden come agonisingly close to the opener after working a free-kick short to Olof Mellberg, whose shot slips just wide of the right post.
2 mins: Sweden are pressing down Senegal's right flank.
0730 BST: Sweden kick-off in the Oita Big Eye Stadium in Japan.
Sweden: Magnus Hedman, Olof Mellberg, Johan Mjallby (capt), Tobias Linderoth, Niclas Alexandersson, Anders Svensson, Marcus Allback, Henrik Larsson, Andreas Jakobsson, Teddy Lucic, Magnus Svensson
Senegal: Tony Sylva, Ferdinand Coly, Pape Malik Diop, Lamine Diatta, Omar Daf, Amdy Faye, Aliou Cisse (capt), Pape Bouba Diop, Pape Thiaw, Henri Camara, El-Hadji Diouf.
Referee: Ubaldo Aquino (Par)