Morocco became the first African nation to reach a World Cup semi-final and ended the hopes of Cristiano Ronaldo’s Portugal.
Striker Youssef En-Nesyri scored the winning goal in the first half, leaping highest to beat goalkeeper Diogo Costa to the ball and heading in to spark pandemonium at Al Thumama Stadium.
The north African side’s supporters populated most of the venue and joyously celebrated their breakthrough moment on the global stage.
Ronaldo came off the bench in the 50th minute to equal the men’s all-time appearance record of 196 in international matches, but he could not drag his side back into the contest.
Morocco, who will face England or France in the last four, were happy to play on the counter and grabbed the opener just before the break when En-Nesyri headed in from Yahya Attiyat-Allah’s cross.