Al Rayyan made a bright start, taking the lead through Serbian striker Aleksandar Mitrovic in the 10th minute before Mahrez restored parity for Al Shamal in the 37th minute, ensuring both sides went into the break on level terms.
Brazilian forward Roger Guedes restored Al Rayyan’s advantage in the 53rd minute, putting his side on course for victory.
However, Al Shamal refused to surrender, with Mahrez converting from the penalty spot in the 89th minute to rescue a valuable point for his side.
The result capped an impressive individual performance by the Algerian star, whose brace proved decisive in an entertaining four-goal contest.
While Al Shamal twice fought back from a goal down, Al Rayyan, who remained as league leaders with 25 points, were left to rue their inability to preserve their advantage.