Defending champions Algeria gave away a two-goal lead as they were held 2-2 by hosts Zimbabwe.
Despite the draw, the Algerians have confirmed their place at the next Africa Cup of Nations finals in Cameroon, which have been delayed until 2022.
In the 34th Reda Halaimia whipped in a long cross from the right and an unmarked Andy Delort had a straightforward header to score his first goal for Algeria.
Moments later came the brilliance from Manchester City’s Mahrez as he flicked the ball past one defender and then cut into the area before twisting and turning to wrong-foot two defenders and firing home.
The Warriors pulled a goal back two minutes before half-time as striker Knowledge Musona curled in a free-kick from the edge of the area to beat Rais M’Bolhi.
That seemed to galvanize Zimbabwe and they created the better chances after the break and were rewarded when Tanzania-based Prince Dube scored the equaliser in the 82nd minute seconds after coming on as a replacement.
He picked up the ball as it was flicked on from a corner and his shot somehow went over the line as M’Bolhi failed to hold the ball for what looked like a routine save.
It was a big improvement from Zimbabwe who had lost 3-1 to Algeria on Thursday evening.
Algeria now have 10 points in Group H, five ahead of Zimbabwe, with both teams having played four matches.