Morocco defeated Ivory Coast 2-0 on Saturday night in Abidjan to qualifying for the 2018 World Cup in Russian Federation, the country's first appearance at the finals since 1998.
Morocco and Tunisia now join Nigeria, Senegal and Egypt as Africa's representatives at next year's FIFA World Cup in Russian Federation.
Tunisia claimed the other spot despite being held to a goalless draw at home by Libya in Group A of the African qualifiers.
Floor collapses during packed party at North Texas apartment
Carley Carroll is a UNT sophomore who lives on the second floor directly below the unit that collapsed. Amazingly people only suffered minor injuries when they fell through the floor in Denton, Texas .
Morocco completed the campaign without conceding a goal, finishing on 12 points, four ahead of the Ivorians.
The hosts poured men forward for most of the rest of the match, but Morocco generally looked in control of things at the back and held on comfortably, giving Herve Renard - the coach who ended Ivory Coast's Africa Cup of Nations drought in 2015 - a famous victory against his former team.
Guinea's Ousmane Sidibe headed into his own net while defending a set piece after the hour mark, but the visitors were able to equalise 10 minutes later when Keita Karamokoba pounced on a loose ball and flicked it over DR Congo goalkeeper Ley Matampi.
Two stoppage-time goals through Jonathan Bolingi and Neeskens Kebano, which sealed a 3-1 win against Guinea, was not enough for Florent Ibenge's side, who needed Libya to record a victory over the Eagles of Carthage on Saturday.
Patson Daka put Zambia in front in the 26th minute but Andre Zambo Anguissa equalised from outside the box five minutes later.