The north African side, who became the first Arab or African nation to reach the World Cup semi-finals last year, showed that their success was no fluke.
Morocco’s Atlas Lions rubber stamped King Mohammed VI’s statement that country’s football ambition knows no limits by securing a historic 2-1 win over five-time world champions Brazil in a friendly international on Saturday.
The north African side, who became the first Arab or African nation to reach the World Cup semi-finals last year, showed that their success was no fluke.
Former Southampton midfielder Sofiane Boufal, gave Morocco the lead after 29 minutes with a powerful turn and drive from a pass by Bilal El Khannous.
Brazil skipper Casemiro managed to level the score in the 67th minute with a weak shot that was fumbled by goalkeeper Yassine Bounou.
However, on-loan Sampdoria midfielder Abdelhamid Sabiri sealed the deal for Morocco with a volley in the 79th minute.
"I think we played a good game and did everything as far as possible to win," said Manchester United midfielder Casemiro.
"I wouldn't say we lacked understanding, it's about putting into practice the ideas of a new coach."
The Seleção had a new manager in the dugout, with interim coach Ramon Menezes replacing Tite who stepped down after the World Cup last-eight exit at the hands of Croatia.
Only 10 of the 23-man squad that took Brazil to a disappointing quarter-final exit at the World Cup made the trip to Morocco for the game.
The injured Neymar was once again absent, with his number 10 shirt passing to Real Madrid youngster Rodrygo.
The Brazilian Football Confederation (CBF) hopes to announce the name of its new coach before the start of qualifying for the 2026 World Cup in September.
According to Brazilian media, the CBF's first choice is Real Madrid’s Carlo Ancelotti. However, he is not expected to decide on his future before the end of the European season.
Before kick-off at the Ibn Batouta stadium, both teams paid tribute to Pele, who passed away last December at the age of 82.
This victory marks the first time Morocco has ever beaten Brazil, having suffered defeats in their only two previous meetings with the team in a 1997 friendly and the group stages of the 1998 World Cup in France.