Portugal won its first game of the 2022 World Cup, defeating Ghana 3-2 Thursday evening in Qatar. 

All five goals came in the final 45 minutes of play, but Portugal outlasted Ghana to secure a win in Group H. 

Portugal's Cristiano Ronaldo celebrates after scoring during the World Cup Group H soccer match between Portugal and Ghana, at the Stadium 974 in Doha, Qatar, Thursday, Nov. 24, 2022. 

Portugal's Cristiano Ronaldo celebrates after scoring during the World Cup Group H soccer match between Portugal and Ghana, at the Stadium 974 in Doha, Qatar, Thursday, Nov. 24, 2022.  (AP Photo/Francisco Seco)

Portugal star Cristiano Ronaldo got the scoring started in the 65th minute, putting Portugal up 1-0 by converting on a penalty. 

WORLD CUP 2022: JAPAN SHOCKS GERMANY IN GROUP E MATCH

Ronaldo became the first male player to score at five World Cups with the goal. 

Ronaldo’s first World Cup was in 2006, when he converted a penalty against Iran. At the 2018 World Cup in Russia, Ronaldo had five goals. 

Portugal's Rafael Leao celebrates scoring a goal

Portugal's Rafael Leao celebrates scoring his side's third goal against Ghana during a World Cup Group H soccer match at the Stadium 974 in Doha, Qatar, Thursday, Nov. 24, 2022.  (AP Photo/Manu Fernandez)

However, his heroics alone were not enough for Portugal to earn three points as Ghana tied the game at 1-1 on a goal by Ghana's Andre Ayew in the 73rd minute. 

CRISTIANO RONALDO SUSPENDED 2 GAMES FOR ‘IMPROPER’ CONDUCT IN APRIL MATCH

Portugal quickly responded, scoring goals in the 78th and 80th minutes to put the game away. 

It has been an interesting few days for soccer’s biggest star, as Ronaldo and Manchester United agreed to part ways on Tuesday after the 37-year-old was critical of his English Premier League club in an interview. 

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

In an appearance on "Piers Morgan Uncensored," Ronaldo said he felt "betrayed" by the club and accused senior officials of trying to force him out. 

Portugal's Cristiano Ronaldo after scoring a goal at the World Cup

Portugal's Cristiano Ronaldo celebrates after scoring from the penalty spot his side's opening goal against Ghana during a World Cup Group H soccer match at the Stadium 974 in Doha, Qatar, Thursday, Nov. 24, 2022.  (AP Photo/Manu Fernandez)

"Cristiano Ronaldo is to leave Manchester United by mutual agreement, with immediate effect," Manchester United said in a statement posted to Twitter. "The club thanks him for his immense contribution across two spells at Old Trafford, scoring 145 goals in 346 appearances, and wishes him and his family well for the future.

CLICK HERE TO GET THE FOX NEWS APP

"Everyone at Manchester United remains focused on continuing the team’s progress under Erik ten Hag and working together to deliver success on the pitch."

Ronaldo now has a record 118 international goals.