The atmosphere inside the Olympic Stadium was crackling with anticipation ahead of kick-off and, for the first time this tournament, there was not a spare seat to be seen.
Pounding drums helped lift the volume further, while giant Moroccan flags waved in a stiff breeze that made conditions far cooler once the sun went down.
But fans hoping to be entertained by two teams who had found goalscoring easy in their first two group games were left disappointed by a stop-start affair that often threatened to become ill-tempered.
While the decision for Mrabet’s goal was the most important intervention of the evening, the assistant referees’ flags also played a key role.
Both teams had the ball in the net during the 90 minutes, only to see it ruled out by a late flag for offside. Jraidi and Senegal forward Nguenar Ndiaye also saw the flag go up following good chances they failed to finish.
While most of those offside decisions were clear, VAR had to intervene again in added time at the end of the game after Morocco captain Ghizlane Chebbak found the back of the net.
Referee Nabadda was also busy keeping discipline in what developed into a niggly affair, issuing a total of seven yellow cards.
While Senegal huffed and puffed the West Africans never really looked like creating much in the way of clear chances.
The hosts always looked the superior footballing side and saw Chebbak and Jraidi also spurn excellent opportunities that were onside.
Topping the group means Morocco stay in the capital Rabat for their quarter-final on Friday, while Zambia remain in Mohammedia for their clash the same day.
If Senegal do manage to progress, the Lionesses of Teranga will travel to Oujda to take on the winners of Group C next Saturday.
Watch all your favorite Amazon Prime Video Sports broadcasts live and free. Get access to NFL, NBA, NASCAR, WNBA, and more – all included with your Prime membership!