Colombia qualified for the quarterfinals of the Copa America despite losing 2-1 to hosts Brazil in controversial circumstances.
Porto winger Diaz opened the scoring in Rio de Janeiro in the 10th minute, when Juan Cuadrado lobbed a cross from just outside the penalty area.
Brazil’s second-half equalizer, a Roberto Firmino header, was preceded by a Neymar pass that glanced off Argentine referee Nestor Pitana.
Colombia heatedly argued afterward that play should have been stopped, but Pitana ruled neither side was hindered and allowed the match to continue.
The resentment only grew when an unmarked Casemiro headed in the winner deep into stoppage time.
However, Colombia, who are second in Group B with four points from four matches, still secured a spot in the quarter-finals.
In the early match, Ecuador and Peru failed to settle who advances to the quarter-finals, drawing 2-2 in Goiania.
Ecuador took the early lead from an own goal, the ball going in off the foot of Peru’s Renato Tapia in a jostle in front of the goal in the 23rd minute.
Ayrton Preciado scored in stoppage time to close the first half with Ecuador ahead of Peru 2-0.
Peru’s Gianluca Lapadula answered in the 49th minute off a pass from Christian Cueva and Andre Carillo netted the equalizer in the 54th minute.
Ecuador had come into the match with only one point, earned in a draw with Venezuela, while Peru had three. Each earned another point, putting Peru in joint second place with Colombia.
Brazil now have nine points and Ecuador and Venezuela two each.
Brazil were already through to the quarter-finals before Wednesday’s matches, and are now joined by Colombia.
The rest of the group’s fate will be decided on Sunday, when Brazil face Ecuador and Peru play Venezuela.
The top four of five teams in each of two groups advance to the quarter-finals.
Got what it Takes?
Predict and Win Millions Now