Needing only a draw to qualify for next year's Russian Federation finals, two first-half goals from Nibal Dirar and Juventus defender Mehdi Benatia ensured the Atlas Lions a World Cup spot.
Morocco and Tunisia have joined Nigeria, Egypt, and Senegal as the African teams who will be playing in the World Cup this summer.
Morocco needed only a draw in their last group game to finish top of the standings ahead of the Ivorians, who had to win to clinch a place in Russian Federation.
The Moroccan Football Federation has put up unprecedented financial rewards for the players of the Moroccan national team.
Why Netflix, Inc. (NFLX) Might Get Into A Pricing War With Disney
A subscription costs £4.99 per month, and now , there are no plans to launch DisneyLife outside of Europe. Shares initially fell almost 4% in late trading Thursday, after the top and bottom line misses.
Tunisia last played at the World Cup in 2006. But it was the Moroccans who got the breakthrough when Nabil Dirar's cross evaded everyone and found its way it to the net.
Dirar gave his side the lead in the 25 minute when a cross-cum-shot from the Fenerbahçe winger eluded Ivory Coast keeper Sylvain Gbohouo.
Tunisia, meanwhile, progressed as winners of Group A despite not being able to end their campaign with victory over Libya, who finished bottom.
Starting the final game three points behind Tunisia, Congo beat Guinea 3-1 in a whirlwind finish, when Congo scored twice in injury time. The Tunisians held on for the draw, though, and it turned out to be a precious point.
As the final set of matches of CAF World Cup qualification concluded, all five African World Cup slots have been confirmed, including Tunisisa and Morocco.