Nigeria 2-1 Rwanda
Rwanda missed out in qualification by the narrow margin even though they beat Group D leaders Nigeria in the final qualifier at Godswill Akpabio International Stadium.
After a goalless first stanza, Samuel Chukwueze broke the deadlock for Nigeria on the hour-mark but Ange Mutsinzi equalised for Rwanda 18 minutes before time.
Innocent Nshuti snatched the winner for The Wasps three minutes later, while they also lost the services of Kaizer Chiefs goalkeeper Fiacre Ntwari.
The Super Eagles were already qualified and finished at the top of the section by three points.
Rwanda ended up in third place, equal on points with second-placed Benin, who edged them for a spot in the 2025 tournament on a better head to head.
Libya 0-0 Benin
Benin qualified in the last game of Group D after a goalless draw against Libya at Tripoli International Stadium.
A point was enough for Benin to qualify with a better head to head over Rwanda, as both sides were equal in second and third spot.
Libya finished bottom of the section.
Malawi 0-3 Burkina Faso
Malawi came short of qualifying after thrashing Burkina Faso 3-0 in the last Group L encounter at Bingu National Stadium.
Gabadinho Mhango broke the deadlock for Malawi just before the half-hour mark and Richard Mbulu doubled their lead shortly before the hour-mark.
Lloyd Aaron put the game to bed for the hosts with the third goal moments later.
The Flames, however, were already eliminated as they picked up their first win.
Burkina Faso came to the game already through, as they finished second in the group.
Morocco 7-0 Lesotho
Morocco finished their Group B campaign with a perfect record after trouncing Lesotho 7-0 thanks to a hat-trick by Brahim Diaz at Honneur Stadium.
Diaz opened the scoring for Morocco after just five minutes, doubled their lead ten minutes later and completed his brace.
Soufiane Rahimi made it 3-0 for Atlas Lions eight minutes before the break.
Morocco were running riot just before the break as Diaz made it 4-0 and completed his hat-trick.
Rahimi made it 5-0 for the hosts on the stroke of half-time and also got his brace.
Youssef En Nesyri made it 6-0 for Morocco 22 minutes before time and Ismael Saibari made it 7-0 for Walid Regragui's charges moments later.
Lesotho ended up in third place, as they could not qualify.
Tunisia 0-1 Gambia
Gambia ended their Group A campaign with a 1-0 win over Tunisia at Stade Olympique Hammadi Agrebi.
Abdoulie Ceesay opened the scoring for Gambia on 17 minutes and that proved to be the winner.
The Scorpions could not qualify as they finished in third place, two points behind The Carthage Eagles, who had already made it through.