Morocco and Tunisia both qualified for the 2018 World Cup after their respective games with Ivory Coast and Libya.
Tunisia booked their place in next year's World Cup finals after securing a point from a goalless draw at home against neighbours Libya on Saturday.
Tunisia finished on 14 points in Group A of the African preliminaries, one ahead of the Democratic Republic of Congo, who fell short despite a 3-1 win over Guinea in Kinshasa at the same time.
Unbeaten Tunisia, who have been to four previous World Cup finals and were the first African country to win a game at the finals in 1978, were denied a fifth win in six group matches as Libya’s goalkeeper Mohamed Nashnush made a number of key saves.
Diving saves kept Youssef Msakni, Anice Badri and Ghilane Chaalani from scoring as Nashnush proved a one-man roadblock.
The Carthage Eagles finish qualifying unbeaten to reach their first World Cup since 2006.
Goals from defenders Nabil Dirar and Medhi Benatia handed Morocco a 2-0 away win over the Ivory Coast on Saturday in their last World Cup qualifier and booked a return to the finals for the first time in two decades.
Morocco needed only a draw in their last group game to finish top of the Group C standings in the African preliminaries, ahead of the Ivorians, who had to win to clinch a fourth successive World Cup finals appearance.
But after weathering an early storm, including a potential penalty call, Morocco scored two goals in the space of five minutes to put themselves on their way to the finals, in which they last appeared in 1998, in France.
Morocco completed the campaign without conceding a goal, finishing on 12 points, four ahead of the Ivorians. Gabon had seven and bottom-placed Mali five.