Morocco powered into the last 16 of the FIFA World Cup for the first time in 36 years on Thursday with a 2-1 victory over eliminated Canada.
Goals from Hakim Ziyech and Youssef En-Nesyri ensured the North Africans finished top of Group F ahead of 2018 World Cup runners-up Croatia.
Morocco, who last reached the knockout stages of the World Cup in 1986, will face the runners-up from Group E in the last 16, with the identity of their opponents decided later Thursday.
Meanwhile, Romelu Lukaku missed a string of late chances as Belgium crashed out of the World Cup in the group stage after a 0-0 draw with Croatia on Thursday which sent the 2018 runners-up into the knockout phase.
Croatia had a penalty award controversially cancelled by VAR early in a largely uneventful first half.
The introduction of Lukaku at the interval changed the game, but he was guilty of a few big misses as Zlatko Dalic’s side rode their luck to hold on.
Croatia progressed as runners-up in Group F behind winners Morocco.
Belgium, the world’s second-ranked side, saw their run of reaching at least the quarter-finals at four straight major tournaments come to an abrupt end.
Roberto Martinez’s men managed just one goal in the tournament in a fortunate opening 1-0 win over Canada.
Martinez dropped captain Eden Hazard to the bench as one of four changes which also saw Leandro Trossard and Dries Mertens start for the first time in Qatar.
The build-up to the match had been dominated by rumours of an altercation between senior Belgian players, involving Eden Hazard, which Martinez described as “fake news”.
Croatia almost took the lead inside the first 10 seconds, as the ball was played forward to Ivan Perisic after kick-off and the Tottenham man cut inside and drilled a shot just wide of the far post.
The likelihood of Belgium needing to win was increased when Morocco scored an early goal across Doha. Yannick Carrasco had a chance to open the scoring but his shot was blocked.
Mertens curled over after a trademark Kevin De Bruyne run and pass, before Croatia were awarded a penalty seconds later when Carrasco tripped Andrej Kramaric in the box.
But the decision was overturned following a lengthy VAR check which decided that a tiny fraction of Dejan Lovren’s shoulder was offside.
Desperate for a goal after a first half in which neither side mustered a shot on target, Martinez sent on Lukaku, Belgium’s record scorer, for Mertens at half-time.
They immediately carried more threat, with Lukaku, who struggled with injury in the build-up to the tournament, heading straight at Croatia goalkeeper Dominik Livakovic.
Thibaut Courtois was then called into action for the first time, stretching to tip over Mateo Kovacic’s curling effort as the game opened up.
That also suited the Croatian attackers though and Courtois had to twice get down to keep out low shots from Marcelo Brozovic and Luka Modric.
Belgium should have taken the lead on the hour mark.
Carrasco almost bundled the ball in but was denied by Livakovic, before Lukaku contrived to hit the post with the goal gaping on the rebound.
Lukaku was guilty of an even worse miss two minutes later, heading over an empty net from six yards out, although replays suggested the ball may have been out of play when De Bruyne crossed it in.
Martinez also threw on Thorgan Hazard, Youri Tielemans and Jeremy Doku as Belgium searched for that all important goal.
Lukaku saw another chance come and go in the 87th minute, deflecting the ball wide from Thomas Meunier’s volley.
The striker, on loan at Inter Milan from Chelsea, still had another golden opportunity to be the hero, but he opted to chest the ball towards the open net from three yards out and directed it into the arms of Livakovic.
Joy for Morocco
Canada’s defeat meanwhile capped a disappointing World Cup for the CONCACAF side, who depart after losing all three of their group games on their long-awaited return to the finals.
Morocco put themselves firmly on course for the second round after upsetting Belgium 2-0 on Sunday, a result that left them needing only a point against Canada on Thursday to be sure of advancing.
Achieving that objective never looked in doubt after the Moroccans grabbed the lead after only four minutes in front of 43,102 fans at the Al-Thumama Stadium.
Canada captain and goalkeeper Milan Borjan raced off his line to clear an underhit backpass from Steven Vitoria but could only watch in horror as the ball fell to Morocco’s Ziyech.
The Chelsea star seized the opportunity ruthlessly, coolly lifting a finish over the stranded Borjan into the empty net for 1-0.
That early setback winded Canada, who struggled to gain any sort of a foothold against a rampant Morocco who were soon 2-0 up.
Right-back Achraf Hakimi’s long ball caught the Canadian defence napping and En-Nesyri darted in behind before smashing home a finish at the near post to beat Borjan.
Canada pulled a goal back on a rare foray forward five minutes from half-time when defender Sam Adekugbe skipped clear down the left and rifled in a low cross.
Defender Nayef Aguerd stuck a leg out and the ball deflected into the net past Morocco goalkeeper Yassine Bounou to make it 2-1.
Morocco thought they had restored their two-goal cushion in first-half stoppage time when En-Nesyri lashed home eight yards out only for the effort to be deemed offside.
Canada started the second half brightly, with Alphonso Davies jabbing a shot just wide after a promising attack.
But Morocco dropped deeper and Canada lacked the inventiveness to seriously threaten.
Their best chance of drawing level came from a setpiece on 71 minutes, when substitute Atiba Hutchinson’s header from a corner crashed off the underside of the crossbar and bounced off the goal-line.
Full-back Alistair Johnston failed to control the rebound and Morocco’s lead remained intact.
Canada captain Borjan almost got caught out again in another risky advance in injury time, but Davies was on hand to snuff out the danger before Morocco’s raucous fans erupted in celebration at the whistle.