Pablo Sarabia, Carlos Soler, and Sergio Busquets missed their penalties for Spain, with Sarabia hitting the post and Morocco goalkeeper Yassine Bounou stopping the other two.
The teams drew 0–0 in regulation and extra time.
Morocco has been the biggest surprise of the tournament and will next face either Portugal or Switzerland.
Morocco is the only team from outside Europe or South America to make it to the last eight. It is the only Arab—and African—nation left in the tournament.
Source: The Epoch Times