IVORY COAST have failed to qualify for next year's competition after losing 2-0 to Morocco.
The Atlas Lions are returning to the World Cup for the first time in 20 years after they last made it in 1998.
Serge Aurier had the best chance to score for Ivory Coast in the second half, but he skied his shot over the bar, and Morocco maintained their record of not conceding a single goal in the six games in CAF qualifying Group C.
Before Saturday, the trio of Nigeria, Egypt and Senegal had booked their tickets before the two North African countries also came on board to Russian Federation.
Gabon and Mali who also belonged in the group had ended their match all square.
Tunisia could not break down neighbours Libya in Rades on the outskirts of Tunis and had to settle for a 0-0 draw that was just enough to see them first over the finishing line.
The Tunisians secured a fifth appearance at the tournament by topping the table with 14 points, one more than the Democratic Republic of Congo.
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.
The first blow came when an intended cross from Dirar went over an Ivorian defender and a Moroccan attacker and slipped past goalkeeper Sylvain Gbohouo into the far corner.
Tunisia emerged the leaders in Group A, surviving a resilient Libya that shared the spoils of the day with their hosts.
Two goals in stoppage time - a Jonathan Bolingi penalty and a fine Neeskens Kebano strike - gave DR Congo the victory, but it proved not to matter as Tunisia held on for the draw in the other game to win the group by a single point.