Three-time continental champions Nigeria were among four sides to qualify for the 2025 Africa Cup of Nations (Afcon) without kicking a ball on Thursday.
Gabon, South Africa and Uganda are also assured of their places in Morocco after results in their respective groups went their way.
Ten-man Tunisia netted a 93rd-minute winner to triumph 3-2 away against Madagascar and book their place at the finals for a record-extending 17th time.
Libya’s 1-0 win in Rwanda guarantees Nigeria a top-two finish in Group D, and means Benin will join the Super Eagles at the tournament if they win their all-West African meeting later (19:00 GMT).
Meanwhile, Ghana’s hopes of qualification are still alive after Sudan suffered a damaging 4-0 defeat away against Niger, who revived their own campaign.
The Sudanese had needed just a point to progress from Group F.
Four-time Afcon winners Ghana must beat already-qualified Angola in Luanda on Friday (19:00 GMT) to remain in the hunt for a ticket to the 2025 finals.
Equatorial Guinea and Ivory Coast both qualified for next year’s tournament on Wednesday despite not playing – and that theme continued on Thursday.
Central African Republic had to win away against Lesotho in order to put pressure on Gabon in Group B, but a 1-0 defeat in Bloemfontein means CAR’s wait for their Nations Cup debut will continue for at least another two years.
Congo-Brazzaville also needed three points from their trip to South Sudan in Group K, but finished with 10 men as they lost 3-2 in Juba.
That result handed qualification to group leaders Uganda, who will be back at the finals for the first time since 2019, and South Africa.
Ali Abdi was the hero for Tunisia against Madagascar in Group A, netting just four minutes after Wajdi Kechrida was sent off.
The Malagasy had twice fought back from a goal down, and were eliminated after being denied a point in the closing stages.
Elsewhere Libya kept their faint chances alive in Group D as Fahd Saad Mohamed struck a late winner against Rwanda in Malawi.
There are 10 matches scheduled on Friday, when Botswana, Comoros, Mali, Mozambique, Zambia and Zimbabwe all have a chance to qualify.
Morocco (hosts), Algeria, Angola, Burkina Faso, Cameroon, DR Congo, Egypt, Equatorial Guinea, Gabon, Ivory Coast, Nigeria, Senegal, South Africa, Tunisia, Uganda
Madagascar 2-3 Tunisia (Group A)
Lesotho 1-0 Central African Republic (Group B)
Rwanda 0-1 Libya (Group D)
Benin v Nigeria (Group D, 19:00 GMT)
Equatorial Guinea 0-0 Algeria (Group E)
Niger 4-0 Sudan (Group F)
South Sudan 3-2 Congo-Brazzaville (Group K)
Burundi 0-0 Malawi (Group L)
Burkina Faso v Senegal (Group L, 19:00 GMT)