Uruguay sealed their place in the last 16 with an 1-0 victory over Saudi Arabia that means the host nation Russia are also through to the knockout stages.
Luis Suárez opened the scoring from close range after 23 minutes. The Saudi goalkeeper Mohammed al-Owais attempted to claim an inswinging corner but got nowhere near the ball, allowing the striker to tap home.
Cristiano Ronaldo strikes again for Portugal to send Morocco out
Group A concludes on Monday, with Uruguay playing Russia in Samara in what amounts to a play-off for top spot – the hosts will need only a draw to ensure they progress as group winners – while Saudi Arabia face Egypt in Volgograd.