Morocco and Croatia both booked a spot in the FIFA World Cup’s Round of 16 in Qatar.
The Moroccans topped the group after defeating Canada 2-1 overnight, surprising many who tipped them to make up the numbers behind Croatia and Belgium.
A gift from Canada keeper Milan Borjan offered Hakim Ziyech a 4th-minute opener before Youssef En-Nesyri doubled their advantage on 23 minutes.
That eventually sparked the Canadians into action and they struck back, rather fortuitously, when Sam Adegukbe’s cross from the left was turned by Morocco’s Nayef Aguerd into the back of his own net.
Canada were just inches away from an equaliser on 71 minutes when captain Atiba Hutchinson thundered a header onto the crossbar which bounced back off the goal-line.
The 2-1 scoreline remained from that moment, allowing Morocco to progress to the knockout phase of a World Cup for just the second time in their history, joining the 1986 team that coincidentally also topped Group F.
It was also the first time they have won successive matches at a World Cup.
The loss Canada without a point and with an unenviable 100 per cent losing strike rate at World Cups (0-6).
Joining the North Africans in the final 16 is Croatia who held on for a 0-0 draw with Belgium.
Belgian striker Romelu Lukaku spurned some golden scoring chances late in proceedings which would prove costly for the nation’s ‘golden generation’.
The result left Belgium stranded at the group stage for the first time since 1998.
It also prompted manager Roberto Martinez to step away from the role after six years, which included third place at the 2018 World Cup.
"It has been six years where we've been able to do everything you want to do. The team has played and given people real joy. But this is the time for me to accept (it is over). I don't resign. It's the end of my contract," Martinez said.
"Since 2018 I had many opportunities to leave and take jobs at club level, but I wanted to stay loyal."
Croatia now meets the winner of Group E, either Japan or Spain, in the Round of 16 on Tuesday at 2am (AEDT) as Morocco prepare to face that group’s second-placed side, either Spain, Coata Rica or Germany, on Wednesday at 2am.