Uruguay beat Copa America defending champions Chile 1-0 on Monday to claim the top spot of Group C.
Edinson Cavani's 82nd minute goal moved Uruguay to seven points and above Chile, which remained with six.
Uruguay will face Peru in the quarterfinals on Saturday, while Chile will play in Sao Paulo against Colombia which have won all three of its matches and yet to concede a goal in the tournament.
A pitch invader enters the field during the Copa America Group C match between Chile and Uruguay in Rio de Janeiro, Brazil, June 24, 2019. /VCG Photo
Ecuador and Japan drew 1-1 in the other match of Group C, a result which eliminated both from the tournament.
Japan last played in the Copa America as a guest in 1999, when they also were eliminated in the group stage.
Ecuador won only two of their 18 matches in the Copa America since 2004. They lost to Uruguay and Chile in other matches this year.
Ayrton Preciado of Ecuador fights for the ball against Japan during the Copa America Group C match which ended in a 1-1 draw in Belo Horizonte, Brazil, June 24, 2019. /VCG Photo
The draw between Ecuador and Japan gives Paraguay a spot in the quarterfinals of the South American competition.
Paraguay could only cheer after losing to Colombia in Group B on Sunday, but it got the result it needed to advance as one of the top two third-place finishers.
The top two nations in each of the three groups advanced, along with the two best third-place finishers.
The quarterfinals will feature Brazil-Paraguay, Venezuela-Argentina, Colombia-Chile and Uruguay-Peru.