Reigning champions the USA are out of the Women's World Cup after being beaten by Sweden on penalties.
USA, who won the last two tournaments, dominated the 120 minutes but were denied by an inspired goalkeeping performance from Zecira Musovic.
In the shootout Lina Hurtig scored the deciding penalty as USA keeper Alyssa Naeher narrowly failed to stop the ball crossing the line.
Sweden go through to face Japan in the quarter-finals.
They were indebted to Musovic, who made 11 saves in a game where the USA looked more like the team which won the World Cup in 2015 and 2019 than the one which snuck through the group stage.
But they could not score and in the shootout Megan Rapinoe, Sophia Smith and Kelley O'Hara all missed - Rapinoe with what is her final action at a World Cup, as she has announced she will retire at the end of the year.
The final moment of drama came as Naeher could only push Hurtig's spot-kick up and over herself before pushing it away. After checking with the video assistant, referee Stephanie Frappart awarded the goal - and sparked wild Sweden celebrations.
It condemns the USA to their worst performance at a Women's World Cup. They had never previously failed to make it to the semi-finals.
More to follow.
helpHow to play
Rate players out of 10 throughout or after the game. The rater will close 30 minutes after the final whistle.
Rating range key1 = Give it up10 = Pure perfection
Sweden
Squad number1Player nameMusovic
Squad number14Player nameBjörn
Squad number13Player nameIlestedt
Squad number6Player nameEriksson
Squad number2Player nameAndersson
Squad number16Player nameAngeldahl
Squad number23Player nameRubensson
Squad number19Player nameRytting Kaneryd
Squad number9Player nameAsllani
Squad number18Player nameRolfö
Squad number11Player nameBlackstenius
Squad number8Player nameHurtig
Squad number10Player nameJakobsson
Squad number15Player nameBlomqvist
Squad number20Player nameBennison
USA
Squad number1Player nameNaeher
Squad number23Player nameFox
Squad number8Player nameErtz
Squad number4Player nameGirma
Squad number19Player nameDunn
Squad number14Player nameSonnett
Squad number17Player nameSullivan
Squad number20Player nameRodman
Squad number10Player nameHoran
Squad number11Player nameSmith
Squad number13Player nameMorgan
Squad number5Player nameO'Hara
Squad number6Player nameWilliams
Squad number15Player nameRapinoe
Squad number22Player nameMewis
Line-ups
Sweden
Formation 4-2-3-1
1Musovic
14Björn13Ilestedt6Eriksson2Andersson
16Angeldahl23Rubensson
19Rytting Kaneryd9Asllani18Rolfö
11Blackstenius
1Musovic14Björn13Ilestedt6Eriksson2Andersson16AngeldahlSubstituted forBennisonat 97'minutes23Rubensson19Rytting KanerydSubstituted forJakobssonat 82'minutes9AsllaniBooked at 49minsSubstituted forHurtigat 82'minutes18Rolfö11BlacksteniusSubstituted forBlomqvistat 112'minutesSubstitutes
3Sembrant4Lennartsson5Sandberg7Janogy8Hurtig10Jakobsson12Falk15Blomqvist17Seger20Bennison21Enblom22SchoughUSA
Formation 4-2-3-1
1Naeher
23Fox8Ertz4Girma19Dunn
14Sonnett17Sullivan
20Rodman10Horan11Smith
13Morgan
1Naeher23FoxSubstituted forO'Haraat 120'minutes8ErtzBooked at 119mins4Girma19Dunn14SonnettSubstituted forMewisat 120'minutes17Sullivan20RodmanSubstituted forWilliamsat 66'minutes10Horan11Smith13MorganSubstituted forRapinoeat 99'minutesSubstitutes
2Sanchez3Huerta5O'Hara6Williams7Thompson9DeMelo12Cook15Rapinoe18Murphy21Kingsbury22MewisReferee:Stéphanie FrappartLive Text
Match ends, Sweden 0(5), USA 0(4).
Penalty Shootout ends, Sweden 0(5), USA 0(4).
Delay over. They are ready to continue.
VAR Decision: Goal Sweden 0(5)-0(4) USA (Lina Hurtig).
Goal! Sweden 0(5), USA 0(4). Lina Hurtig (Sweden) converts the penalty with a right footed shot to the centre of the goal.Goal awarded following VAR Review.
Penalty missed! Still Sweden 0(4), USA 0(4). Kelley O'Hara (USA) hits the right post with a right footed shot.
Goal! Sweden 0(4), USA 0(4). Magdalena Eriksson (Sweden) converts the penalty with a left footed shot to the top right corner.
Goal! Sweden 0(3), USA 0(4). Alyssa Naeher (USA) converts the penalty with a right footed shot to the high centre of the goal.
Goal! Sweden 0(3), USA 0(3). Hanna Bennison (Sweden) converts the penalty with a right footed shot to the high centre of the goal.
Penalty missed! Bad penalty by Sophia Smith (USA) right footed shot is close, but misses to the right. Sophia Smith should be disappointed.
Penalty saved! Rebecka Blomqvist (Sweden) fails to capitalise on this great opportunity, right footed shot saved in the bottom right corner.
Penalty missed! Bad penalty by Megan Rapinoe (USA) right footed shot is too high. Megan Rapinoe should be disappointed.
Penalty missed! Bad penalty by Nathalie Björn (Sweden) right footed shot is too high. Nathalie Björn should be disappointed.
Goal! Sweden 0(2), USA 0(3). Kristie Mewis (USA) converts the penalty with a left footed shot to the top left corner.
Goal! Sweden 0(2), USA 0(2). Elin Rubensson (Sweden) converts the penalty with a right footed shot to the bottom left corner.
Goal! Sweden 0(1), USA 0(2). Lindsey Horan (USA) converts the penalty with a right footed shot to the bottom left corner.
Goal! Sweden 0(1), USA 0(1). Fridolina Rolfö (Sweden) converts the penalty with a left footed shot to the bottom right corner.
Goal! Sweden 0, USA 0(1). Andi Sullivan (USA) converts the penalty with a right footed shot to the bottom left corner.
Penalty Shootout begins Sweden 0, USA 0.
Second Half Extra Time ends, Sweden 0, USA 0.