The Bayern Munich midfielder score the all-important goal that kept his side in the ongoing tournament.

Leon Goretzka delivered the German national team from the brink of elimination from the European Championship by scoring a late stunner in Wednesday's draw with Hungary. The Bayern Munich midfielder fired home Die Mannschaft's second goal inside Allianz Arena to tie the night's clash 2-2, securing them place in the Round of 16 in the process.

Joachim Lowe's men were guaranteed a place in the knockout round provide they avoided defeat in their final group of the ongoing Euros. However, they were met with a tough contest against the Hungarians who opened the scoring through their captain Adam Szalai in the 11th minute. Their resolve was tested but was barely compromised for the remainder of the first half and it was not until the 66th minute that Kai Havertz restored parity. 

Less than 120 seconds after the Chelsea attacker had equalized, Marco Rossi's men restored their lead through another headed goal. This time, Andras Schafer was the man that hit the target, finishing off a brilliant move that followed his side's restart after conceding Germany's leveller. With Portugal and France heading for a 2-2 draw in the other Group F fixture, it looked certain that Germany were on the verge of a painful exit.

What would have arguably been the biggest upset of the tournament was prevented in the 84th minute thanks to Leon Goretzka's strike. Watch the goal below:

In the end, Germany climbed into second position on the basis that they beat Portugal in the clash between the pair as both sides finished the group stage with four points and a goal apiece. Die Mannschaft will take on England at Wembley in their Round of 16 clash on June 29th whereas the Seleccao will go up against Belgium at Estadio de la Cartuja on June 27th. Relatively, group winners France will take on Switzerland on June 28th at the National Arena in Bucharest, Romania.