Croatia bowed out of the tournament as the competition entered its knockout stages.

After a goalless first half, Croatia broke the deadlock in the 53rd minute through Ivan Perišić, putting Portugal under pressure.

However, Cristiano Ronaldo restored parity in the 68th minute by converting a penalty, scoring his first-ever goal in a FIFA World Cup knockout match.

With the contest seemingly destined for extra time, substitute Gonçalo Ramos headed home Rafael Leão's cross deep into stoppage time to complete Portugal's comeback.

Croatia thought they had snatched a late equaliser, but their celebrations were cut short after a VAR review ruled the goal out for offside.

Portugal's dramatic win sets up a blockbuster Round of 16 clash against Spain, while Croatia exit the tournament after a spirited campaign.