Updated

Morocco stunned soccer fans when they finished first in Group F over Croatia and Belgium, and on Tuesday jaws dropped again when the North African country eliminated Spain from the World Cup.

Morocco kept Spain at bay through regulation and extra time. Spain took 13 shots, including one on goal, but failed to get the ball into the net. Even a shot from Pablo Sarabia on the right side of the 6-yard box hit the post. It would underscore the rest of the match for Spain.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Walid Cheddira heads it

Spain's Alejandro Balde, bottom, and Morocco's Walid Cheddira challenge for the ball during the World Cup Round of 16 soccer match between Morocco and Spain, at the Education City Stadium in Al Rayyan, Qatar, Tuesday, Dec. 6, 2022. (AP Photo/Luca Bruno)

The two nations went into penalties,

Abdelhamid Sabiri, Hakim Ziyech and Achraf Hakimi would score in penalties while goalkeeper Yassine Bounou made two key saves on Spain’s shots with one hitting the post.

Hakimi put the final ball in the net for the finishing touch on Spain.

FRANCE'S KYLIAN MBAPPE DELIBERATELY HIDING BUDWEISER LOGO IN 'MAN OF THE MATCH' PHOTOS: REPORT

Pablo Sarabia misses big shot

Spain's Pablo Sarabia tries a shot during the World Cup Round of 16 soccer match between Morocco and Spain, at the Education City Stadium in Al Rayyan, Qatar, Tuesday, Dec. 6, 2022.  (AP Photo/Martin Meissner)

It is the first time Morocco has advanced to the quarterfinals of the World Cup since the nation made its debut in 1970. This year’s tournament was the first time they made it as far as the Round of 16 since 1986.

Morocco has only allowed one goal in the entire tournament so far.

For Spain, a nightmare. The squad won the World Cup in 2010, but their last three tournaments have not gone well. Spain failed to make it out of the group stage in 2014 and lost in the Round of 16 in 2018.

Morocco players

Morocco's players celebrate after the penalty shootout at the World Cup Round of 16 soccer match between Morocco and Spain, at the Education City Stadium in Al Rayyan, Qatar, Tuesday, Dec. 6, 2022.  (AP Photo/Luca Bruno)

CLICK HERE TO GET THE FOX NEWS APP

Morocco will now play the winner of Portugal and Switzerland.