Peru stunned two-time defending Chile in the semifinals of the Copa América on Wednesday, setting up a final against host Brazil on Sunday.
Edison Flores, Yoshimar Yotún and Paolo Guerrero scored a goal each to lead Peru to a 3-0 win and a spot in the final for the first time since 1975, when it last won the South American tournament.
The result kept Chile from adding to its titles from 2015 and 2016, ending its hopes of becoming the first team to win three straight South American trophies since Argentina in the 1940s.

Peru's Edison Flores celebrates scoring his side's opening goal during a Copa America semifinal soccer match against Chile at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoRicardo Mazalan)
Flores opened the scoring with a shot from inside the area in the 21st minute and Yotún added to the lead in the 38th with a strike into the open net after Chile goalkeeper Gabriel Arias left the area to try to stop a counterattack.
Guerrero sealed the victory in stoppage time to become the Copa América's all-time leading scorer among active players with 13 goals.
Chile's Eduardo Vargas could match Guerrero when his team was awarded a penalty kick in the final seconds, but he had his shot from the spot saved by Peru goalkeeper Pedro Gallese.

Peru's goalkeeper Pedro Gallese celebrates his side's first goal scored by Edison Flores against Chile during a Copa America semifinal soccer match at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoSilvia Izquierdo)
Chile and Argentina, who met in the last two Copa América finals, will play in the third-place game on Saturday.
More AP soccer: https://apnews.com/apf-Soccer and https://twitter.com/AP_Sports

Peru's Edison Flores celebrates scoring his side's opening goal during a Copa America semifinal soccer match against Chile at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoRicardo Mazalan)

Chile's Charles Aranguiz gestures during a Copa America semifinal soccer match against Peru at Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoEdison Vara)

Chile's Eduardo Vargas (11) strikes the ball followed by Peru's Christian Cueva during a Copa America semifinal soccer match at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoSilvia Izquierdo)

Peru's Paolo Guerrero, left, vies for the ball with Chile's Erick Pulgar, right, during a Copa America semifinal soccer match at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoAndre Penner)

Chile's Eduardo Vargas (11) strikes the ball followed by Peru's Christian Cueva during a Copa America semifinal soccer match at the Arena do Gremio in Porto Alegre, Brazil, Wednesday, July 3, 2019. (AP PhotoSilvia Izquierdo)