The Democratic Republic of Congo advanced to the knockout stages of the Africa Cup of Nations, while Tanzania exited the tournament following a goalless draw between the two teams in Korhogo.
Hakim Ziyech scored the decisive goal as Morocco finished top of Group F and advanced to the last 16 of the Africa Cup of Nations with a 1-0 victory over Zambia.
Bafana Bafana sealed a spot in the Africa Cup of Nations last 16 while Tunisia crashed out after the sides played to a goalless draw in the final Group E match in Korhogo.
Namibia secured their maiden qualification to the Africa Cup of Nations Round of 16 with a goalless draw against Mali.
Algeria crashed out of the Africa Cup of Nations as Mohamed Dellahi's first-half goal proved enough to earn Mauritania a shock first-ever 1-0 win in the tournament and a ticket to the last 16.
Senegal qualified for the Africa Cup of Nations knockout rounds as Group C winners with a perfect record following their 2-0 victory over Guinea on Tuesday.