Morocco have become the first African World Cup quarter-finalist since Ghana in 2010.
The Atlas Lions defeated Spain via a dramatic penalty shootout 3-0 to secure their place in the last eight of the competition in Qatar.
No side from the continent has ever made it past the quarter-finals, with Cameroon (1990), Senegal (2002) and most recently the Black Stars (2010) knocked out in the last eight – all after extra time or penalties.
Morocco will face the winner of the Round 16 clash between Portugal and Switzerland.