Algeria earned three out of three wins in Group C after outclassing Tanzania 3-0 at the Al Salam Stadium in Cairo.
The goals all came in the last 10 minutes of the first half as the pace of the Algerians cut open the Tanzanian defence too easily.
Adam Ounas scored twice, while Islam Slimani also netted. The result meant Tanzania finished rock bottom of the group and crash out of AFCON 2019 with three defeats.
Algeria enter the last 16 as one of the teams who are hotly tipped to lift the tournament after nine points in the group stage.
Read more: Mane’s brace dents Kenya’s last 16 dream