IVORY COAST have failed to qualify for next year's competition after losing 2-0 to Morocco.
Morocco have remarkably qualified from Group C without conceding a single goal.
Both nations join Nigeria, Egypt and Senegal, as Africa's representatives at the global finals next year.
Gabon and Mali who also belonged in the group had ended their match all square.
Meanwhile, Tunisia's goalless draw against Libya proved enough to seal their World Cup spot from Group A.
Tunisia's point ensures their fifth World Cup participation - and their first since 2006 - but ensures that the Democratic Republic of Congo's wait to return to the global showpiece for the first time since 1974 will continue.
Ivory Coast had the first chance at a packed 35 000-seat Stade Felix Houphouet-Boigny but veteran Gervinho blazed over with only the goalkeeper to beat from inside the box. Before today's matches, Morocco had 9 points while the Ivorians had 8 points; meaning the victor of the match would qualify.
But Morocco comfortably contained the hosts in a match that threatened to boil over at times with Dirar and Crystal Palace flyer Wilfried Zaha wrestling each other to the ground.
Florent Ibenge's side made hard work of the West Africans, and only opened the scoring in the 62nd minute when Ousmane Sidibe put the ball past his own goalkeeper.
DR Congo scored twice in stoppage time through Jonathan Bolingi and Neeskens Kebano to defeat Guinea 3-1 in Kinshasa.
Tunisia also booked their spot at Russian Federation 2018 with a tense 0-0 draw against Libya.
Jonathan Bolingi put the Congolese Lions ahead again two minutes into additional time and Neeskens Kebano added a third goal nearly immediately.