Mali became the last team to qualify for the quarter-finals of the Africa Nations Championship after drawing 0-0 with Zambia.
The Malians, who needed at least a draw to progress alongside Zambia, were able to achieve their target.
At the end of the group stage matches, Zambia finished top with seven points while Mali came second with five points.
Mali will now face Group C winners Tunisia, while Zambia will take on Guinea.
In the Group D other game, Zimbabwe and Uganda settled for a 1-1 draw.