Algeria opened a two-point gap at the top of Group A after drubbing Djibouti 4-0 at Cairo International Stadium.
Youcef Belaili broke the deadlock for the Desert Foxes on the half-hour mark, Said Benrahma and Sofiane Feghouli scored two quick goals in the tail end of the first stanza to effectively put the game to bed.
Islam Slimani rounded off the thrashing with the fourth goal in the last four minutes.
Egypt qualified for the final round with a match to spare in Group F after coming from two goals down to draw 2-2 with Angola at Estadio 11 de Novembro.
Helder Costa broke the deadlock for Angola in the 26th minute and M'Bala Nzola doubled their lead ten minutes later.
However, Mohamed Elneny pulled a goal for the Pharaohs on the stroke of half-time before Akram Tawfik levelled matters on the hour-mark to secure top spot with a match to spare.
Morocco, who were already through to the final round, maintained their perfect record in Group I after thrashing Sudan 3-0 at Stade Prince Moulay Abdallah.
Ryan Mmaee got an early opener for the Atlas Lions and doubled their lead on the hour-mark, before Imran Louza sealed the result with the third goal in stoppage time.
Burkina Faso missed the chance to move level on points with Group A leaders Algeria after they were held to a 1-1 draw by Niger at Stade de Marrakech.
Youssouf Oumarou broke the deadlock for the visitors 11 minutes before the half-time break from the penalty spot, but Issoufou Dayo levelled matters for the Stallions ten minutes inside the second stanza.
Second-placed Gabon are out of the running in Group F despite a 1-0 win over Libya at Stade de Franceville.
Pierre-Emerick Aubameyang broke the deadlock for Gabon early in the second stanza but their win was in vain, as they trail group leaders Egypt by four points with only match remaining.
Guinea and Guinea-Bissau, who were both out of the running in Group I, played to a goalless draw at Stade General Lansana Conte.
Guinea-Bissau remain in second spot with five points, ten points behind leaders Morocco, while Guinea remained a point behind in third place with four points.