Neymar scored a hat-trick as Brazil thrashed Peru 4-2 in a World Cup qualifier.
The treble took Neymar past Ronaldo to second on Brazil's all-time goalscorers.
The PSG forward now has 64, which is just 13 behind the all-time leader Pele.
Richarlison scored the other goal and he thanked Brazil's medical staff.
Neymar overtook Ronaldo and moved into second place behind Pele on Brazil's all-time goalscoring list after notching a hat-trick in a 4-2 World Cup qualifying victory over Peru.
The Paris Saint-Germain striker now has 64 goals, two more than Ronaldo and 13 behind Pele, who heads the list with 77, according to the count by world governing body FIFA.
Brazil coach Tite was reluctant to compare his current star with past greats.
'It's unfair making comparisons,' he said. 'What I can say is Neymar has this unpredictability. He is the bow and the arrow, he's a player who both makes and takes chances. And he gets better and better, and more mature.'
On Tuesday, Neymar equalled and then passed Ronaldo with two penalties either side of half-time before grabbing No 64 in injury time at Lima's National stadium.
The 28-year old celebrated by holding up the No 9 with his hands in what appeared to be a tribute to Ronaldo, the former Barcelona, Real Madrid and Corinthians striker.
1 - Pele - 77 goals, 92 games
2 - Neymar - 64 goals, 103 games
3 - Ronaldo - 62 goals, 98 games
4 - Romario - 55 goals, 70 games
5 - Zico - 48 goals, 71 games
Neymar, who made his Brazil debut in 2010, scored his 64 goals in 103 games.
Richarlison, meanwhile, thanked the team's medical staff for getting him fit to play after he scored in the game too.
The Everton forward was carrying an ankle injury when he arrived in Brazil for qualifiers against Peru and Bolivia.
He managed a substitute appearance in Friday's 5-0 win over Bolivia but was fit enough to start against Peru, scoring once and supporting Neymar throughout.
'I'm very happy to be back after 11 months,' he said of the long layoff caused by the coronavirus pandemic.
'We worked very hard this week. Myself, even with my ankle trouble, I treated it morning, noon and night. I have to thank the medical department who worked hard every day to get me 100 per cent for this game.'
Richarlison is enjoying a superb start to the season at Everton, who top the Premier League with four wins from four games.