The goals of the match were scored by Achraf Dari (9th) for Morocco and Gvardiol (07th) and Orsic (42nd) for Croatia.
Morocco is the first African and Arab team to have reached this stage of the competition in a World Cup.
The final of the World Cup 2022 will oppose, Sunday, France to Argentina.