With a whole team kneeling to the ground to thank Allah the Almighty, Moroccan players celebrated what had seemed almost impossible.
They knocked out Spain, one of the pre-tournaments favourites, to reach the next round as the only Muslim country in the big eight.
Following a goalless 120 minutes, the two teams had to settle for a penalty shootout on Tuesday.
As Spain squandered all four of their attempts, Achraf Hakimi scored the decisive spot-kick, giving the Atlas Lions a 3-0 win.
Morocco advanced to a quarter-final clash to face either Portugal or Switzerland, meeting later on Tuesday.
Earlier this month, the Atlas Lions clinched a spot in the knockout stage of the World Cup for the first time since 1986.
Morocco is one of six Muslim countries that qualified for the competition, holding high hopes of reaching as far as possible in the international tournament.
Follow our coverage of the World Cup 2022:
- World Cup: Fans Unite in Prayers Outside Qatar Stadiums
- Young Muslim “Metro Guy” Wins Hearts of World Cup Fans
- World Cup Fans Try Hijab First Time in Life
- Kouyaté, Senegalese Defender: Islam, People Our Motivation in World Cup
- FIFA World Cup Opens with Quran Recitation – First Time in History
- World Cup 2022: FIFA Bans Alcohol Sales at Qatar Stadiums
- World Cup 2022: Times Journalist Fascinated by Sound of Prayer Call
- Top Muslim Players to Watch in Qatar (Part II)
- Barcodes in Qatar Hotels Introduce Islam to Fans
- World Cup 2022: Top Muslim Players to Watch in Qatar (Series)
- World Cup 2022: Here Are 6 Muslim Countries to Follow
- Muslims & World Cup: 10 Facts You Should Know
- Qatar World Cup 2022: Here Are 12 Interesting Facts
- Qatar 2022: Prophet’s Hadith Murals Introduce Islam to World Cup Fans
- Ghana Prepares for World Cup with Special Prayer
- FIFA World Cup: Qatar Reopens Museum of Islamic Art