In a shocking move, Portugal head coach Fernando Santos benched soccer legend Cristiano Ronaldo following his actions in the previous match against South Korea. 

His replacement, 21-year-old Gonçalo Ramos, scored a hat trick to lead Portugal to the World Cup quarterfinals in a 6-1 win over Switzerland Tuesday in Qatar. 

As Ronaldo sat with a yellow World Cup pinny on Portugal’s bench, Ramos got his squad on the board early with a surprising goal that stunned Switzerland goalkeeper Yann Sommer. Ramos turned quickly after receiving a pass in the Swiss box and fired the ball off his left boot and into the net for his first career World Cup goal. 

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Pepe yells after goal

Pepe of Portugal celebrates his goal during a FIFA World Cup Qatar 2022 Round of 16 match against Switzerland at Lusail Stadium Dec. 6, 2022, in Lusail City, Qatar. (Richard Sellers/Getty Images)

His second goal came on a low driven cross from Diogo Dalot in the 51st minute of the match. Ramos made a run to the near post and stuck a foot out to pinball the ball past Sommer. 

About 15 minutes later in the match, Portugal found itself on another run with Ramos cutting to the right side and getting the ball. He flicked it to the back of the net and spread his arms out wide to the cheering crowd. 

It was the first time a Portuguese player had scored a hat trick since Ronaldo did it during the 2018 World Cup. Ramos is also the youngest player to have a hat trick in a World Cup knockout match after Brazilian legend Pele. 

WORLD CUP 2022: CRISTIANO RONALDO ABSENT FROM PORTUGAL LINEUP VS. SWITZERLAND

After scoring his hat trick, Ramos was among three Portuguese players who were subbed out, and Ronaldo entered the game in the 72nd minute. 

In between Ramos’ goals was one by 39-year-old Pepe for his second career World Cup goal and his first in 2022. Pepe became the oldest man to score in the knockout stage of the World Cup. 

He scored it on a header on a perfectly timed leap on a corner kick for Portugal’s second goal. 

Cristiano Ronaldo stands pregame

Cristiano Ronaldo of Portugal, center, looks on from the bench prior to a FIFA World Cup Qatar 2022 round of 16 match between Portugal and Switzerland at Lusail Stadium Dec. 6, 2022, in Lusail City, Qatar. (Francois Nel/Getty Images)

Raphael scored four minutes after Ramos' second goal to make it 4-0.

Switzerland got on the board with a corner after Raphael's goal as Manuel Akanji found the back of the net after the ball was mistakenly flicked on by Ramos in the box. 

But it was all for naught. Rafael Leão buried Portugal’s final goal of the match in extra time to seal the deal. 

WORLD CUP 2022: MOROCCO SHOCKS SPAIN IN ROUND OF 16, ADVANCES TO QUARTERFINALS FOR FIRST TIME

Portugal now heads to the quarterfinals to face Morocco. Portugal will likely be favored even though the Moroccan squad upset Spain Tuesday in penalty kicks. Spain went 0-for-3 on its attempts and was stunned when Morocco kicked in the final penalty to advance. 

The question now for Portugal is whether Santos will have Ronaldo back in the starting 11 after Ramos put together such a wonderful performance in his first starting action of the World Cup. 

Goncalo Ramos celebrates goal

Gonçalo Ramos of Portugal celebrates after scoring his third goal, his side's fifth, to make the score 5-0 during a FIFA World Cup Qatar 2022 Round of 16 match against Switzerland at Lusail Stadium Dec. 6, 2022, in Lusail City, Qatar. (Sebastian Frej/MB Media/Getty Images)

CLICK HERE TO GET THE FOX NEWS APP

The match with Portugal and Morocco will be played Saturday at 10 a.m. ET.