Morocco were the first team to fall out of the World Cup after a Cristiano Ronaldo bullet header consigned them to a second straight 1-0 defeat.
The Portugal superstar moved ahead of Hungarian great Ferenc Puskas to become the highest scoring European in international football with his 85th goal in 152 appearances.
His brave header from a fourth-minute corner was enough to secure all three points, although, the Euro 2016 champions were fortunate to survive a Moroccan onslaught with their profligacy either side of the half consigning them to an undeserving defeat.