The game also saw two Peru defenders receive red cards.
Brazil have weathered the storm to beat Peru 4-2 away in the World Cup qualifiers.
The hosts drew first blood after the goal from Andre Carrillo in the sixth minute of the game.
Neymar equalized from the penalty spot at the half-hour mark after he was brought down in the box. He soon scored another goal only for VAR to disallow it.
The hosts restored the lead in the second half with the help of Renato Tapia’s goal, which took a slight deflection on its way.
However, Brazil soon responded with an equaliser as Richarlison found the nets in a scrappy fashion.
With the game entering the climax, Neymar restored the lead once again from a spotless penalty kick and followed up by another goal in the injury time to complete his hat-trick. Everton Ribeiro’s strike hit the post before the PSG ace snatched it up to wind up the game 4-2.
The final ten minutes of the game was quite boisterous as two of the Peruvian players got sent off. Carlos Zambrano was shown a straight red following his foul on Richarlison while Carlos Caceda faced the same fate from the bench.
It will be an unforgettable night for Neymar as he has surpassed Ronaldo to become the second all-time top scorer of the Brazil national team, taking his goal tally to 64. He is only thirteen goals shy of equalling the record of legendary player Pele.