Carlos Queiroz’s side, who beat Morocco 1-0 and suffered a narrow 1-0 defeat to
Spain, drew 1-1 with Cristiano Ronaldo-spirited Portugal at the Mordovia Arena
In the last minute of the first half, Portugal broke through in style as Ricardo Quaresma made his way to the edge of the area and curled a stunning effort into the corner with the outside of his boot.
In the 53rd minute, a penalty was awarded to Portugal by video assistant referee (VAR) but Alireza Beiranvand saved Cristiano Ronaldo’s kick.
Another VAR review, this time for a challenge by Ronaldo on Morteza Pouraliganji, ended in a booking for the Portugal captain.
Substitution Karim Ansarifard found the back of the net from the penalty spot in the stoppage time after VAR review showed that Portugal’s Cedric Soares committed a handball in the area.
Spain was hold to a 2-2 draw by Morocco but advanced to the next stage as the winner.
Portugal finished second in the group and will face Group A champion Uruguay next on Saturday in Sochi.
Spain will play host Russia.