Morocco and Tunisia became the final African nations to qualify for the 2018 World Cup as both countries ended long spells away from the finals.
A 2-0 win at the Ivory Coast, who needed a victory of their own to progress, ended a 20-year qualifying drought for Morocco who last made the finals in 1998.
Tunisia’s absence has not been as long but they will celebrate a first appearance in 12 years thanks to a goalless draw at home to Libya.
Nigeria, Senegal and Egypt had previously sealed their spots in Russia next year.
Tunisia finished a point clear of DR Congo, who were seeking a first trip to the finals since 1974 when they played as Zaire, to achieve their own fifth World Cup qualification.
Earlier Group B concluded with Zambia holding Cameroon to a 2-2 draw to finish second behind Nigeria, who drew at Algeria on Friday.
Group E finishes on Sunday with Egypt travelling to Ghana while Group D winners Senegal can celebrate with a dead rubber against South Africa on Tuesday.