Another four nations booked their places at Afcon 2019 on Sunday night.
Algeria got the points they needed thanks to a 4-1 win over Togo, courtesy of a brace from Riyad Mahrez.
Guinea and Ivory Coast both qualified from Group H after they played to a 1-1 draw and rivals Rwanda and Central African Republic played to a 2-2 draw earlier in the day.
Meanwhile, Mauritania can celebrate going to the continental finals for the first time in their history after they beat Botswana 2-1.
Mauritania are top of Group I with 12 points from five matches, while Botswana are rock bottom with a single point from the same number of matches.