Pre-tournament favorites Algeria have crashed out of AFCON 2017 at the group stage after a 2 - 2 draw with Group B winners Senegal on Monday night.
Islam Slimani scored both their goals, a two-yard volley from a Yacine Brahimi cross and a scuffed effort that wrong-footed Senegal's goalkeeper.
But Senegal twice equalised, Papakouly Diop and then Moussa Sow both firing in efforts from the edge of the area.
Zimbabwe who came last in Group B crashed out of the tournament after a 4 - 2 loss to second place Tunisia.
Naim Sliti's deflected shot put Tunisia ahead before Youssef Msakni and Taha Khenissi extended the lead.
Knowledge Musona grabbed one back but a Wahbi Khazri penalty restored Tunisia's three-goal cushion by the break.
Tendai Ndoro scored from a wonderful counter-attacking move by Zimbabwe counter.
Tunisia and Senegal join Burkina Faso and Cameroon in the next round while Algeria and Zimbabwe join Gabon and Guinea-Bissau in exiting the tournament.
Ghana, with a game in hand have also qualified for the quarter-final of AFCON 2017.