Sweden secured top spot in Group E with a last-gasp 3-2 win as Poland were eliminated despite two goals from Robert Lewandowski.
Only a win could have kept Poland in Euro 2020 but any hope of that appeared to have gone when Emil Forsberg followed up his goal in the second minute with another after the break.
As Paulo Sousa’s side pushed hard for the winning goal they needed they left spaces at the back and substitute Viktor Claesson capitalised to win the game in stoppage time.
That goal moved Janne Andersson’s Sweden above Spain in Group E and they now travel to Glasgow to face Ukraine or the Czech Republic depending on what happens later in the evening in Group F
Group E table
Sweden: Olsen (7), Lustig (7), Lindelof (6), Danielson (5), Augustinsson (6), Larsson (6), Olsson (6), Ekdal (6), Forsberg (8), Quaison (7), Isak (6)
Subs: Kulusevski (7), Berg (6), Krafth (6), Claesson (7)
Poland: Szczesny (6), Bereszynski (6), Glik (6), Bednarek (6), Jozwiak (4), Krychowiak (6), Klich (6), Puchacz (5), Swiderski (6), Zielinski (6), Lewandowski (8)
Subs: Frankowski (8), Swierczok (6), Kozlowski (6), Placheta (6)
Man of the match: Emil Forsberg