Emil Forsberg's late penalty put Sweden in a strong position to qualify for the last 16 of Euro 2020 with a 1-0 win over Slovakia in St Petersburg.
After a poor first half, the worst 45 minutes of play in the tournament so far, Sweden upped the ante in the second half as Martin Dubravka made a superb stop from Ludwig Augustinsson's header.
Newcastle goalkeeper Dubravka then gave away a penalty, fouling substitute Robin Quaison in the box, allowing Forsberg to step up and score (77).
Sweden's four points should be enough to guarantee them a spot in the last 16, while Slovakia, on three points, have work to do ahead of their final Group E clash against Spain.
- How the teams lined up | In-depth stats and analysis
- Euro 2020 group tables | Who needs what to qualify for last 16?
Sweden: Olsen (6), Lustig (6), Lindelof (6), Danielson (6), Augustinsson (6), Olsson (5), Ekdal (5), Larsson (6), Forsberg (6), Berg (6), Isak (7)
Subs: Claesson (6), Quaison (7), Svensson (NA), Bengtsson (NA), Krafth (NA)
Slovakia: Dubravka (6), Pekarik (6), Satka (6), Skriniar (6), Hubocan (5), Kucka (7), Hrosovsky (5), Koscelnik (5), Hamsik (6), Mak (6), Duda (6)
Subs: Haraslin (5), Weiss (NA), Benes (NA), Duris (NA), Hancko (NA)
Man of the match: Alexander Isak
How Sweden finally got going to earn vital win
The first half was a drab affair, lacking in clear-cut chances and much quality, with Slovakia aware that a draw would almost guarantee passage into the last 16.
Sweden, who registered more passes after 31 minutes than they had in the entire 90 minutes in the draw against Spain, still showed very little in attacking areas, while Marek Hamsik blazed over for Slovakia from the edge of the box.
Even the referee had enough, calling a halt to the first half without any stoppage time.
But Sweden came to life after the break, as Slovakia sat further back. First, Dubravka produced a quite stunning save to deny Augustinsson's far-post header from Seb Larsson's delivery, before defender Marcus Danielson headed over in a good position from the resulting corner.
The impressive Alexander Isak looked to force an opener, heading over the bar from Mikael Lustig's cross, then skipping past no less than four challenges before being denied by Dubravka's near-post stop from the edge of the box, for what would have been one of the goals of the tournament so far.
Slovakia made two changes from the side that beat Poland 2-1 as Hromada and Haraslin dropped out, replaced by Hrosovsky and Koscelnik.
Sweden were unchanged from their 0-0 draw with Spain on Monday.
For all of Dubravka's fine work, it was the goalkeeper who contributed to Sweden's opener, catching Quaison as he ran through on goal. Dubravka guessed correctly to his left, but Forsberg's superb penalty was too good for him.
Slovakia had to change gears, having sat back negatively for the majority of the game, and though they put late pressure on Sweden's goal, they could not find the leveller.
What the managers said
Sweden boss Janne Andersson: "It's good to have four points after two games. We've played seven games this year, and conceded just one goal. Our attack deserved more today, they were fantastic at times.
"We didn't play the way we wanted to in the first half. Slovakia moved really well and didn't give us anything. In the second half, we hit the ground running. Sometimes, your opponents make it difficult for you, but it was really good that we managed to get control of the match."
On Alexander Isak: "It's really good to see him on the pitch, he's a huge talent. He's a young player who's still got a lot of room for improvement. I think there is a lot more to come from him. He played really well today."
- Sweden have kept a clean sheet in their opening two games of a major tournament (World Cup & Euros) for the third time, having previously done so at the World Cup in 2006 and 1974.
- 88 percent of Sweden's goals at the European Championships have been scored in the second half of games (23/26), the highest percentage of any side with at least three goals at the tournament.
- Slovakia failed to record a shot on target in this game, just the second time a team have failed to do so at Euro 2020 so far (also Turkey against Italy). It was the first time in their 10 games at major tournaments (World Cup & Euros) that they've failed to record at least one in a match.
- Alexander Isak completed six dribbles against Slovakia; the most by a player in a game at Euro 2020 so far, and the most by a Swedish player in a game at the tournament since Tomas Brolin at Euro1992 (7 v Denmark).
Sweden's final group clash comes against Poland on Wednesday at 5pm, while Slovakia take on Spain at the same time.