Peru beat Paraguay 4-3 on penalties to move into the Copa America semifinals on Friday following an action-packed match that ended 3-3 after 90 minutes.
Gustavo Gomez put Paraguay ahead in the 10th minutes but two goals from Gianluca Lapadula gave Peru the upper hand before Gomez was sent off on the stroke of half-time.
Junior Alonso equalised for Paraguay nine minutes into the second half only for Yoshimar Yotun's 80th minute shot to be deflected past Antony Silva. Just when it looked like that would be it, Paraguay equalised again in the final minute through Gabriel Avalos, moments after Peru's Andre Carrillo had been shown a red card.
The victory means Peru will meet the winner of Friday's later game between Chile and reigning champions Brazil in the semi-finals.
David Martinez, Braian Samudio, and Alberto Espinola all missed in the shoot-out for Paraguay, but Miguel Trauco guaranteed Peru a spot in the semifinals for the second Copa in a row after Santiago Ormeno and Christian Cueva had their kicks saved.
The other quarter-finals will be played on Saturday and feature Argentina against Ecuador and Uruguay versus Colombia.