Mile Jedinak's second penalty of the World Cup earned Australia a precious 1-1 draw against Denmark after a controversial VAR decision led to Christian Eriksen's superb opener being cancelled out in Samara.
Denmark winger Yussuf Poulsen conceded his second penalty in as many games when video replays led to a decision of handball against him and Jedinak buried the ensuing spot-kick to earn Australia its first point of the tournament.
Bert van Marwijk's side dominated possession and pressed hard for a winner against a Denmark side which struggled for cohesion.
Poulsen's apparent handball means he will miss Denmark's final Group C game against France, having picked up two yellow cards in two games, and Age Hareide's men need a point from that game to make sure of their place in the knockout stage.
Nothing short of victory will do for Australia when it takes on Peru.
The Danes took 27 minutes to register a shot in their Group C opener against Peru but Thomas Delaney headed wide from Pione Sisto's cross after just two minutes against Australia.
At the other end, Mathew Leckie rose above the Danish defence to head a corner over the bar but Denmark countered and Nicolai Jorgensen's elegant ball control and lay-off afforded Eriksen the chance to hit the cleanest of half-volleys over Mat Ryan and into the top of the net.
Australia ventured forward tentatively, never achieving the kind of intuitive flow that had been its undoing, whereas Denmark went close to doubling the lead when Sisto tested Ryan with a 20-yard drive and again when Jorgensen flashed a close-range header just wide.
The game was going Denmark's way until the 35th minute when referee Antonio Miguel Mateu Lahoz consulted VAR and decided Poulsen used his arm to block Leckie's headed shot and awarded the penalty, which Jedinak drilled into the bottom right corner of the net.
Poulsen had a penalty claim of his own waved away early in the second half after he tumbled to the ground on his way into the Australia box and there were nervy moments for Denmark when Kasper Schmeichel failed to collect a looping long ball before Leckie flashed the ball across the face of goal.
Van Marwijk sent on the tournament's youngest player, Daniel Arzani, with just over 20 minutes left to play and he teed up Aaron Mooy for a fizzing shot that flew just over the top right corner of Schmeichel's goal from outside the box.
Socceroos striker Andrew Nabbout left the field with a dislocated shoulder and was replaced by Tomi Juric, who contributed to a good spell of late Australia pressure, but Denmark's defence held firm as it earned a point that gives it one foot in the last 16.