Mali secured top spot in Group E of the Africa Cup of Nations after a 1-0 win over Angola, who failed to progress to the knockout stage.
Angola threatened early on when Gelson Dala went through, but could not beat goalkeeper Djigui Diarra.
At the other end, Toni Cabaca saved well from first Adama Traore and then Falaye Sacko before Mali striker Kalifa Coulibaly nodded just wide from a corner.
The West African side, though, took the lead in the 37th minute through a long-range effort from RB Leipzig midfielder Amadou Haidara.
Mali progress to a second-round showdown against the Ivory Coast in Suez on July 8, while Angola head home. Tunisia went through as runners-up despite a goalless draw against Mauritania, and will next play Ghana.
Tuesday's results also mean South Africa edge into the last 16 after ranking fourth out of the best third-placed teams, which will see the Bafana Bafana take on hosts Egypt in Cairo on Saturday.
ga('create', 'UA-72310761-1', 'auto', {'name': 'pacontentapi'});
ga('pacontentapi.set', 'referrer', location.origin);
ga('pacontentapi.set', 'dimension1', 'By PA Sport Staff');
ga('pacontentapi.set', 'dimension2', '2704eba8-4bb1-4c09-9d38-4eb1d18b734a');
ga('pacontentapi.set', 'dimension3', 'paservice:sport,paservice:sport:football,paservice:sport:match-reports,paservice:sport:world');
ga('pacontentapi.set', 'dimension6', 'story');
ga('pacontentapi.set', 'dimension7', 'composite');
ga('pacontentapi.set', 'dimension8', null);
ga('pacontentapi.set', 'dimension9', 'sport:football');
ga('pacontentapi.send', 'pageview', { 'location': location.href, 'page': (location.pathname + location.search + location.hash), 'title': 'Mali top Africa Cup of Nations Group E as Haidara strike seals win over Angola'});