The decisive moment arrived deep into stoppage time when substitute midfielder Mikel Merino struck the winning goal, ending Portugal's campaign and leaving Ronaldo to reflect on what was likely his final appearance at football's biggest tournament.

At 41, Ronaldo had entered the competition chasing the one major international honour missing from his decorated career. Although he had previously guided Portugal to success at the 2016 European Championship and the 2019 and 2025 UEFA Nations League, the World Cup trophy remained beyond his reach.

The Portugal captain admitted after the match that he would not feature at another World Cup but said he needed time before making a decision on his wider international future.

"I'm sad to be leaving the World Cup like this. I gave it my all. I did my best. It was my last World Cup, yes, but I'll now have time to reflect and be with my family. I won't be making any rash decisions," Ronaldo said.

"I don't decide anything in the heat of the moment. Now is not important whether I will continue [to play]. Tomorrow I will get up the same way I got up today: with a clear conscience."

Ronaldo, who has represented Portugal for 23 years, highlighted the achievements he has helped deliver for his country.

"I played 23 years in the national team and won three titles. Before Cristiano, Portugal had not won anything. The Euros was the most important. For me, 2016 has the same dimension as a World Cup, honestly," he said.

The next major international tournament, the 2028 European Championship hosted by the United Kingdom and Ireland, would come when Ronaldo is 43, making his continued involvement uncertain.

Spain edge tense Iberian battle

The last-16 clash between two European rivals was a cautious encounter, with Spain controlling possession while Portugal looked to threaten on counter-attacks.

Spain created the better opportunities in the first half but failed to convert, while Portugal struggled to consistently trouble their opponents despite having attacking options capable of changing the game.

Portugal coach Roberto Martínez made a notable change to his starting lineup, bringing in João Félix ahead of Rafael Leão, who had impressed in the previous round against Croatia. The decision was aimed at adding defensive discipline against Spain's dangerous winger Lamine Yamal, though it reduced Portugal's attacking threat.

The match remained finely balanced until Merino's late intervention settled the contest and sent Spain through to the quarter-finals.

For Ronaldo, the defeat marked the end of a remarkable World Cup chapter. He leaves the tournament as one of the greatest players never to lift the famous trophy, having become the first player in history to score in six different World Cup editions and built one of the most celebrated careers in football history.

Martínez steps down after Portugal exit

Portugal coach Roberto Martínez confirmed he would leave his position following the defeat, saying his objective had been to win the World Cup.

"I came to Portugal to win the World Cup and I think that, without winning it, there's no point in continuing," Martínez said.

"My contract ends today. There isn't much more to say."

Martínez also paid tribute to Ronaldo, praising his leadership and commitment throughout the tournament.

"He was an exemplary captain. Not just in terms of goals, the statistics speak for themselves, but also in terms of assists," Martínez said.

"It's his day-to-day commitment, the way he lives and breathes football. He's an example and something we must celebrate."

He added: "This is not the moment to look beyond what we're talking about: a soccer icon. There are not many Cristiano Ronaldos."