Achraf Hakimi took the last penalty kick, which sent Spain packing, in a match that ended 3-0 in a shootout on Tuesday night.
Spain coach Luis Enrique said his team prepared for the penalties before the game. However, Carlos Soler, Pablo Sarabia, and Sergio Busquets missed penalties, and Hakimi ended their hopes by scoring a panenka goal.
Morocco will face Portugal in the quarterfinals, a match that many are looking forward to after Walid Regragui’s side made history by qualifying for the round of eight.
Luis Enriques’ side hoped to repeat their 2010 World Cup success after qualifying for the Euro 2020 semifinals, where they also lost on penalties to Italy.
Last night’s game was entertaining, with Spain leading in possession and Morocco creating a few good chances.
After the shocking defeat by Japan, Enrique decided to bench Spain’s top scorer Alvaro Morata for Marco Asensio and also trialled Marcos Llorente.
Morocco is the last African country remaining at the 2022 World Cup, and all Africans are behind them as they prepare to face Portugal.