Raul Ruidiaz celebrates with his teammates. Pictured: Peru forward Raul Ruidiaz (11) is mobbed by teammates after their 1-0 win over Brazil in the group play stage of the 2016 Copa America Centenario. at Gillette Stadium.Reuters

Brazil suffered a premature exit from Copa America Centenario as Peru handed them a controversial defeat in the final match of Group B at the Gillette Stadium in Foxborough, Massachusetts on Sunday. A controversial goal from Raul Ruidiaz helped Peru finish top of the Group B table, and Brazil outside the quarterfinal places.

The camera showed that the ball clearly touched Ruidiaz's hand before it sneaked into the back of the net in the 75th minute of the match. The Brazilian players mobbed the referee and they were clearly not happy with the decision. The referee chose to consult with the assistant referee and after some of discussion, Peru were awarded with the goal that ousted Brazil from Copa America 2016.

Brazil had come into this match knowing that a draw would be enough to send them into the quarterfinals. But they failed to secure the desired result. 

Dunga's men had their share of chances and they failed to convert them into a goal. Elias came close to scoring in added time, but he missed the opportunity. That was the last chance to keep Brazil afloat in the tournament. 

Watch the controversial goal here:

Philippe Coutinho, who was the star of the previous match against Haiti, too got a number of chances, but was unable to break through the Peru defence, which stood tall right till the end of the controversial match. 

Peru will now head to New Jersey to take on Colombia in the quarterfinal of the Copa America Centenario. 

Watch the highlights of Brazil vs Peru here: