Colombia striker Luis Diaz netted a stunning 25-yard injury-time winner to guide his country to defeat Peru 3-2 in their Copa America third-place play-off.
Yoshimar Yotun had given Peru the lead in the first half only for Juan Cuadrado to equalize with a free-kick shortly after the break.
Diaz then gave the advantage to Colombia before a Gianluca Lapadula's 82nd-minute header leveled the match again.
Argentina, who beat Colombia on penalties in their semi-final, will play hosts Brazil, who beat Peru 1-0, in the final on Sunday.