Achraf Hakimi calmly converted a penalty to send Morocco through to the World Cup quarterfinals for the first time with a 3-0 shootout win over former champions Spain after a cagey last-16 clash ended goalless on Tuesday.

The Spanish-born Hakimi chipped in the decisive penalty, prompting a deafening roar of joy and celebration from the Morocco supporters, after their side became the first Arab nation ever to qualify for the tournament's quarterfinals.

Morocco goalkeeper Yassine Bounou, who plays for Spain's Sevilla, saved spot-kicks from Carlos Soler and Sergio Busquets after Pablo Sarabia had hit the post and Hakimi, a product of the Real Madrid youth system, held his nerve to earn his team a quarterfinal against either Portugal or Switzerland.