Brazil were controversially eliminated from the Copa America after suffering a 1-0 Group B defeat to Peru in Foxborough.
Raul Ruidiaz scored the winning goal 15 minutes from time but appeared to turn the ball into the net with his hand and Brazil protests were waved away by referee Andres Cunha after a two-minute discussion with his linesman.
Peru's win saw them top the group to set up a quarter-final meeting with Colombia, while Brazil will go home after only finishing third in the group.
Philippe Coutinho and Willian stretched the Peru defence in the early stages with a series of neat touches and probing runs as Brazil started strongly.
Felipe Luis forced Pedro Gallese into an early save before the goalkeeper made a magnificent stop to turn away Gabriel's low drive.
Cunha then waved away a strong Brazilian appeal for a penalty when Christian Ramos clashed with Lucas Lima in the 23rd minute.
And at the other end he denied Peru's claims for a penalty of their own when Edison Flores went down under a challenge from Renato Augusto.
Man-of-the-match Gallese had to be on his toes again just before the break to turn away another effort from Gabriel.
Peru came more into the game after the interval and Alisson made a smart stop to turn away Christian Cueva's free-kick following a foul by Joao Miranda on Victor Yotun.
Coutinho continued to be a thorn in the side of Peru and saw one shot blocked before another attempt was well saved by Gallese.
But then came the killer blow for Peru, who were growing in confidence, in the 75th minute.
Andy Polo broke down the right wing and sent over a cross into Ruidiaz, who turned the ball into the net and TV replays appeared to show him using his hand to push the ball past Alisson.
Brazil remonstrated furiously with the official but after two minutes deliberation with his assistant referee he allowed the goal to stand.
It was a hammer blow to Brazil and despite six minutes of time added on they failed to seriously trouble Gallese again and Peru held on for their first victory over Brazil at the Copa America since 1975.
So who'll win it then? It's hard to look beyond France. The weak nature of recent hosts has tended to obscure the major advantage enjoyed by home nations if they've got a good team. And France do have a good team, they got to the quarter-finals of the World Cup and were just edged out 1-0 by the German side who eventually won it. With the Germans in very patchy form since Brazil and Spain without anyone resembling an international class striker, it's France's to lose.