AL RAYYAN, Qatar — Lionel Messi was pushed into the middle of a joyous post-match huddle as Argentina’s players jumped up and down to celebrate reaching the World Cup quarterfinals.

Messi delivered again for his country, marking the 1,000th game of his era-defining career with his first goal in the knockout stage of a World Cup to lead Argentina to a 2-1 win over Australia on Sunday (PH time).

This was not the walkover most were expecting against the unheralded Australians, though.

At the final whistle, Argentina was just as grateful for its goalkeeper as the No. 10 with magic in his boots.

Emi Martinez came up with a sprawling save in the last seconds of an increasingly anxious match to prevent the need for extra time and the potential of another shock in a World Cup full of them.

“That is the World Cup for you,” Messi said. “All the matches are difficult and what’s important is that you win.”

With a flourish of his famous left foot in the 35th minute, Messi put Argentina ahead with his third goal at this year’s tournament and ninth in total at the World Cup — one more than Diego Maradona.

Julián Álvarez pounced on a heavy touch by Australia goalkeeper Mathew Ryan to tap into an empty net for the second goal, but this was no cruise to a quarterfinal meeting with the Netherlands.

Australia’s fightback in the final 20 minutes was as stirring as it was unexpected. Craig Goodwin’s shot deflected into the net off Argentina midfielder Enzo Fernandez in the 77th. Then, amid a late aerial bombardment from the Australians, Garang Kuol had a dramatic chance when he was left free at the far post. Shooting on the turn, his effort was smothered by Martinez and two Argentina players fell on top of their goalkeeper in relief as much as happiness.

As for Messi, he now has 789 goals in a career that might yet reach a crescendo on Dec. 18 by winning soccer’s biggest trophy in his fifth and likely last World Cup.

The dream is still alive for the seven-time world player of the year and the tens of thousands of Argentina fans who dominated the Ahmad Bin Ali Stadium, massively outnumbering the small pockets of green-and-gold-clad Australia supporters to make it feel like a match in Buenos Aires or Rosario.

Argentina’s players linked arms and formed a long line to celebrate in front of their scarf-waving fans at one of end of the stadium after the game.

Argentina and the Netherlands will play their quarterfinal match at Lusail Stadium, the 89,000-seat venue where the final will be staged. The teams last met at the World Cup in 2014, when Argentina won a penalty shootout in the semifinals. (AP)