Chile failed to beat Australia but still booked their place in the Confederations Cup semi-finals, along with Germany after they triumphed against Cameroon.
Chile 1-1 Australia
Chile came from behind to draw 1-1 with Australia at the Otkrytiye Arena on Sunday as they advanced to the last-four of the tournament in Russia.
La Roja dominated for large spells in Moscow, but found themselves trailing to a sucker punch from the Socceroos at the break before equalising in the second half to finish runners-up in Group B on five points.
Juan Antonio Pizzi's side had made the better start, although they struggled to create any clear-cut chances in the first half.
The Aussies began to find their feet after an opening period which saw them give away possession far too often, and they threatened first on 35 minutes when James Troisi played in Massimo Luongo with a chipped pass, but the QPR midfielder's first-time effort was well saved by Claudio Bravo.
They enjoyed a good spell in the closing stages of the first half and finished off strongly as Troisi lifted his shot over Bravo from a few yards out after connecting with Robbie Kruse's low pass from the right to open the scoring on the stroke of half-time.
The Asian champions had their tails up and looked to double their advantage early in the second half with Tim Cahill steering a firm header straight at Bravo from a free-kick on the left in the 55th minute.
Mathew Ryan was called into action for the first time four minutes later as he made a comfortable save from Alexis Sanchez after the Arsenal forward had stabbed a loose ball goalward.
Troisi was just inches away from grabbing his second goal as he rifled a shot over the crossbar from 22 yards out on 65 minutes, but Australia were made to pay just two minutes later when Martin Rodriguez got on the end of Eduardo Vargas' header to fire in off Ryan from close range.
Vargas should have given the back-to-back Copa America winners the lead on 70 minutes as he sent a diving header across the face of goal from Sanchez's cross on the left, while Jamie MacLaren miscued Troisi's deft ball over the top well wide of the left post at the other end soon afterwards.
The Chileans had chances to secure victory as Arturo Vidal fired straight at Ryan from distance on 73 minutes before Rodriguez blazed wide of the left post from inside the box moments later as they had to settle for a share of the spoils.
Germany 3-1 Cameroon
— Germany (@DFB_Team_EN) June 25, 2017
The Video Assistant Referee made another controversial appearance as Germany beat 10-man Cameroon 3-1 at the Fisht Olympic Stadium to finish top of Group A.
After a goalless first half, the game came to life shortly after the restart when Die Mannschaft broke the deadlock before Ernest Mabouka received his marching orders with the aid of the VAR.
Joachim Low's side quickly took advantage of the extra man to double their lead, and although the Indomitable Lions halved the deficit with 12 minutes to go, the world champions sealed the win in the closing stages.
The Germans went into the encounter tied with Chile at the group summit and after a controlled start, they threatened to break the deadlock midway through the first half when Emre Can flashed a shot just wide of the right post from 20 yards out, after being picked out by Julian Draxler's cutback from the left.
Joshua Kimmich then wasted a glorious opportunity to open the scoring from a diving header that he steered wide of the right post from a few yards out three minutes later.
The African champions could have gone into the break ahead had it not been for Marc-André ter Stegen, who was alert to the danger as Mabouka directed Andre-Frank Zambo Anguissa's cross goalward at the back post, with the keeper tipping the ball over the bar.
It took the Germans just three second-half minutes to find the back of the net as Draxler played in Kerem Demirbay with a neat flick, and the Hoffenheim midfielder drilled his shot into the top-right corner of the net from outside the area.
The big talking point arrived on 64 minutes when Mabouka was red-carded for a dangerous high challenge on Can. The referee initially sent off the wrong Cameroon player, but the VAR cleared up the matter after referral.
Germany wasted no time in scoring a second goal, with Werner stooping to head Kimmich's cross on the bounce back across the keeper into the bottom-right corner of the net on 66 minutes.
Cameroon would pull one back on 78 minutes when Vincent Aboubakar met Moumi Ngamaleu's cross from the right to head past Ter Stegen at the near post, but the Germans killed off any thoughts of a comeback with Werner's second of the day three minutes later.
Benjamin Henrichs received a reverse pass on the right and cut the ball back for Werner to lash his shot home from 10 yards out.