Ecuador earned a spot in the final eight of the Copa America Centenario, following a convincing 4-0 win over Haiti, with Peru sending Brazil packing.
Enner Valencia was the star for his side, opening the scoring and assisting two goals in their final group match.
Having drawn its opening two fixtures against Brazil and Peru, Ecuador knew a win by two goals or more in the final group game would see the side through to the knockout rounds.
Brazil on the other hand was controversial eliminated, after Ruidiaz only goal of the match was as a result of a handball.
The Peru international bundled in a cross with his hand, with replays confirming Brazil’s protests.
Referee Andres Cunha upheld the 75th minute goal, five minutes after the incident, after conferring with his linesman.
Elias almost salvaged the required draw but the unmarked midfielder failed to score inside the six-yard box with three minutes to play.
After Ecuador’s 4-0 rout of Haiti, the result meant Brazil failed to progress beyond the group stage for the first time since 1987.