Germany have benefited from two first-half own goals, as they came from behind to beat defending champions Portugal 4-2 and revive their Euro 2020 knockout hopes.
Beaten by France in their opening match, Germany started at breakneck speed, but fell behind against the run of play, when Portugal skipper Cristiano Ronaldo scored his 107th international goal, after a swift counterattack.
Joachim Loew's Germany side flipped the script, thanks to two own goals within four minutes, with Kai Havertz's strike deflected in by Ruben Dias from six yards, followed by Raphael Guerreiro finding his own net from a Joshua Kimmich cut back.
After the interval, a Germany player finally got on the scoresheet, when Havertz made it 3-1, before Robin Gosens capped a memorable individual display by heading in the fourth on the hour.
In the closing stages, Diogo Jota pulled one back to offer Portugal a glimmer of hope, but Germany held on to move up to second in Group F, after two rounds of matches.
Portugal, who beat Hungary in their opening match, slipped to third and will next face group leaders France in a rematch of the Euro 2016 final, while Germany face Hungary.
Earlier, the Hungarians took a shock lead against France in a pulsating second Group F match, before Antoine Griezmann equalised for a 1-1 draw inside the packed Puskas Arena.
The hosts suffered an early blow, when skipper and most experienced goal scorer Aadam Szalai was substituted after 26 minutes, after a blow to the head.
But roared on by over 60,000 fans, Hungary took the lead in first-half injury time, when Attila Fiola combined with Roland Sallai, before the wing-back raced through on goal to beat goalkeeper Hugo Lloris with a low shot at the near post.
France equalised in the 66th minute, when Kylian Mbappe slipped behind the defence to latch on to a bouncing long ball from Lloris and though his cross was only half cleared, Griezmann was on hand to find the back of the net.
In the day's final match, Spain striker Alvaro Morata's first-half goal was cancelled out by a Robert Lewandowski strike for Poland in a 1-1 draw that ensured all four Euro 2020 Group E teams can still qualify, as they head into Thursday's final round of matches.
Morata broke the deadlock in the 25th minute, pouncing to sweep home Gerard Moreno's driven ball into the box and although a linesman's flag for offside delayed the celebrations, the goal was awarded after a video review.
Lewandowski equalised with a towering header from Kamil Jozwiak's cross in the 54th minute and four minutes later, a Moreno penalty came cannoning off the left-hand post, with Morata missing the rebound and several more second-half chances.
The draw leaves Sweden top of Group E on four points, with Slovakia second with three, Spain third on two points and the Poles bottom with one. Sweden play Poland in their final game on Thursday, when Spain meet Slovakia.