The Portuguese forward, 37, may never have another chance to win the game’s biggest trophy, and his World Cup exit was especially bitter as he started the game as a substitute.
The Portuguese team was favoured to win the game and advance to the semi-final stage of the 2022 World Cup tournament in Qatar, but they were defeated 1-0 by the African team.
Morocco became the first African country to reach the World Cup semi-finals after defeating Portugal 1-0 in the 43rd minute thanks to a goal from Youssef En-Nesyri.
With another result Ronaldo might have celebrated levelling the all-time men’s international appearance record with his 196th Portugal cap, but his final minutes were desperate.
As soon as the final whistle blew, Ronaldo left, heading down the tunnel with tears streaming down his face, ignoring the Morocco players rushing to their fans to celebrate.
“If you take two people that are the most upset perhaps it was Cristiano Ronaldo and myself,” said Portugal coach Fernando Santos.
“Of course we are upset, of course it affects us, that’s part of the game, that’s part of the job.”
Ronaldo won Euro 2016 with his country, albeit being taken off injured during the win over France in the final and watching from the sidelines as Eder became his country’s hero.
The World Cup remained a dream for both Ronaldo and his country but they fell short against surprise package Morocco.
In a surprise decision, Ronaldo had been relegated to the bench against Switzerland as Portugal romped to a 6-1 victory in the last 16 and Santos maintained that plan.
However, shortly after half-time, with his team trailing to Youssef En-Neysri’s goal, Santos threw on Ronaldo and Joao Cancelo, looking to their all-time leading scorer to bail them out.
Ronaldo struggled to get involved in the game, with Morocco swarming him whenever the ball was close.
The striker had only one sniff at goal, but Moroccan stopper Yassine Bounou got down quickly to deny him.
After picking himself up from World Cup disappointment, Ronaldo will have to decide his future in the game at club level.
The forward and Manchester United parted ways with a bitter divorce at the start of the tournament and Ronaldo is currently without a club.
Meanwhile, following the record-making win by Morocco, the African side will square up against England or France on Wednesday for their semi-final clash and would be hoping their fairy tale at the Qatar World Cup continues.