Brazil came from a goal down to beat Colombia 2-1 as COPA America continued on Thursday morning.
Luis Díaz had given Colombia a halftime lead but an error from goalkeeper David Ospina allowed Roberto Firmino to equalize in the 78th-minute with Real Madrid's Casemiro breaking free on a Neymar corner to give Brazil a 2-1 win with the last kick of the game.
The win means that the Tite-coached side clinched Group B with a perfect nine points from three games with the team set to finish group-stage play against Ecuador while Colombia must wait to see how results play out after finishing on four points.
In another game of the day, Ecuador lost a two-goal to be held to a 2-2 draw by Peru with the team now in danger of being eliminated from the tournament.
Ecuador took the lead through Renato Tapia's own goal and another from Ayrton Preciado before half-time but Peru came back thanks to goals from Gianluca Lapadula and Andre Carillo in the first ten minutes.
Ecuador is level on the bottom of the Group B table with Venezuela on two points and will face Brazil on Sunday. Peru, on four points, will take on Venezuela.
COPA America Thursday Results