Gabriel Jesus scored the decisive spot-kick as hosts Brazil beat Paraguay on penalties to reach the Copa America semi-finals.
Paraguay had Fabian Balbuena sent off after 58 minutes for a foul on Roberto Firmino, but the match ended goalless.
Gustavo Gomez and Derlis Gonzalez missed from the spot for the visitors as Brazil won the shootout 4-3.
The eight-time winners - booed by their fans in their first two games - will next face Argentina or Venezuela.
Brazil, who last won in 2007, were initially awarded a penalty following West Ham defender Balbuena's foul on Liverpool forward Firmino when he was through on goal - but the decision was overturned after a video assistant referee check showed the offence took place outside the box.
The hosts peppered the opposition goal in Porto Alegre, registering 26 attempts - Manchester City forward Jesus shot narrowly wide from close range before Chelsea winger Willian hit a post in the final minute.
Brazil were beaten by Paraguay on penalties in 2011 and 2015, but they triumphed this time despite Firmino dragging his spot-kick wide when they led 3-2.
Potential opponents Venezuela and Argentina play later on Friday, with the semi-final taking place in Belo Horizonte next Tuesday.
Have your say
More Sports Headlines
- Azumah pays tribute to former opponent Whitaker
- Pernell 'SweetPea' Whitaker, vanquisher of Azumah Nelson, dies in car accident
- Caf boss Ahmad paid expenses for same days but different countries
- Esperance and Wydad lodge Champions League appeals
- 'I am studying German' - Mourinho hints at Bundesliga interest
- AFCON 2019: Senegal to miss defender Kalidou Koulibaly in final
- AFCON 2019: Celebrations marred by violence after Algeria's semi-final win
- AFCON 2019: Mahrez scores late winner to put Algeria into final
- AFCON 2019: Senegal beat Tunisia after extra-time to reach final
- Novak Djokovic beats Roger Federer in Wimbledon final-set tie-break thriller
- 'Beating PSG 6-1 my best footballing memory' - Neymar fuels Barca comeback
- Senegal v Tunisia: kick-off time, team news, head to head, form and more
- AFCON 2019: Military planes to fly Algeria fans to Cairo for Nigeria clash
- Agyemang-Badu joins Hellas Verona on loan
- Simona Halep beats Serena Williams to win Wimbledon title