Morocco, Africa’s first side in the semifinals of the FIFA World Cup, will square off on Wednesday with France in Qatar 2022.
In the last quarterfinals of the tournamet, the defending champions stopped England 2-1 to reach the last four.
Real Madrid midfielder Aurélien Tchouaméni opened scoring in the 17th minute through Antoine Griezmann.
Harry Kane leveled from the spot when Bukayo Saka was brought down in the box.
But Olivier Giroud delivered the winning goal for Les Bleus, while Kane failed to deliver the second penalty.
Argentina will take on Croatia in the other semifinal.