Brazil fought back from a goal down to score an 89th-minute winner that completed a 2-1 comeback win over Chile.
The hosts went ahead in the second minute of Thursday's World Cup qualifier in Santiago when a looping header from Eduardo Vargas went past Ederson in goal, although it was an effort that should arguably have been saved.
While Chile had chances to extend their lead and had claims for a penalty in the first half, Brazil equalised in stoppage time through a close-range header from Igor Jesus.
The Selecao controlled much of the second half as they went in search of a winner, and they were able to find it a minute from time. Botafogo winger Luiz Henrique cut in from the right and bent a shot past the goalkeeper to earn his country three points.
It is a victory that moves Brazil up a place to fourth in the CONMEBOL World Cup qualifying table, while Chile remain second-bottom, seven points behind an automatic qualification spot.
That they were able to get the result without some key players - Alisson, Eder Militao and Vinicius Junior are all injured - will have pleased coach Dorival Junior, for whom the result will ease some of the pressure.
Data debrief: Plenty to improve for Brazil
Prior to their victory in Chile, Brazil had been on a run of four defeats in five matches in World Cup qualifying.
This result leaves them three points ahead of eighth-placed Paraguay, who occupy the final elimination slot and beat Brazil 1-0 in the previous matchday.
Although Brazil found a way to win, this was the sixth qualifier in eight that they registered three shots on target or fewer.
Given that they have also conceded the second-most goals (nine) within the top eight, there is clearly still work to do from Dorival to get them performing at a higher level.