Neymar ties Pelé's all-time scoring record with Brazil at World Cup

Neymar of Brazil runs with the ball during the FIFA World Cup Qatar 2022 quarter final match between Croatia and Brazil at Education City Stadium on December 09, 2022. (Lars Baron/Getty Images)

Neymar moved into a tie with Pelé as Brazil’s all-time leading scorer with 77 goals on Friday.

The Brazil forward scored in the first half of extra time of his team's World Cup quarterfinal match against Croatia.

Neymar scored with a right-footed shot after getting through the defense and dribbling past the Croatia goalkeeper to match Pelé’s record. He entered the tournament two goals shy of the milestone, and scored his 76th in the round of 16 against South Korea after returning from an ankle injury.

RELATED: Brazil fans at World Cup game salute soccer great Pelé

Pelé remained in a hospital in Brazil treating a respiratory infection that was aggravated by COVID-19. The latest medical report said the 82-year-old Pelé, who last year had surgery to remove a colon tumor, was doing OK.

The 30-year-old Neymar scored his 77 goals in 124 matches for Brazil. Pelé’s goals came in 92 appearances with the national team between 1957 and 1971.

Ronaldo, a World Cup winner with Brazil in 2002, is third on the list with 62 goals in 98 matches.

RELATED: Brazil's in-game dances at the FIFA World Cup set off debate

Neymar first played for Brazil as an 18-year-old in 2010. He is trying to win his first major title with the national team. Pelé won three World Cups, including as a 17-year-old in the 1958 tournament. He also helped Brazil win the World Cup in 1962 and 1970.

Neymar is playing in his third World Cup and is the only other Brazil player other than Pelé and Ronaldo to score in three different World Cups. He helped the Seleçao win the 2013 Confederations Cup and its first Olympic gold medal at the 2016 Rio de Janeiro Games.

Neymar damaged ligaments in his ankle in Brazil’s opening win against Serbia, and his participation in the rest of the tournament was in doubt because of the injury. He made it back to the starting lineup after missing two group games, and played about 80 minutes in Brazil’s 4-1 win over South Korea on Monday.

RELATED: Brazil, Croatia advancing to World Cup quarterfinals

He was knocked out of the 2014 World Cup after hurting his back in the quarterfinals against Colombia. Brazil eventually lost to Germany 7-1 in the semifinals.

The right ankle had already caused Neymar problems in the past, being among a series of injuries since the 2018 World Cup in Russia. Another right ankle sprain forced him to miss the 2019 Copa América, which Brazil won.