Wydad Athletic Club came from a goal down to beat Union Touarga 2-1 in Sunday's Botola Pro League game at Larbi Zaouli Stadium.
The visitors scored within the first 17 minutes through Youssef Kajai to silence the home fans.
However, Rhulani Mokwena's outfit equalised from the penalty spot in the 23rd minute courtesy of Mohamed Rayhi.
The winning goal came with three minutes to go thanks to El-Mehid Moubarik.