Ghana sealed top spot in Africa Cup of Nations Group B and a quarter-final meeting with Cape Verde by outclassing Niger 3-0 in Port Elizabeth.
The World Cup quarter-finalists were simply too strong for opponents who finished bottom of the pool and might have enjoyed an even more emphatic win.
Asamoah Gyan set the Black Stars on their way and Christian Atsu added a second before the break. John Boye ended any faint hopes of a Niger comeback with the third soon after the break.
Mahamadou Samassa's early leveller ensured Mali also progressed at the expense of the Democratic Republic of Congo in Durban.
Knowing nothing short of a win on Monday would see them through to the knockout stages, DR Congo came flying out of the traps and took the lead through Dieumerci Mbokani's penalty.
But Samassa, starting in place of Cheick Diabate, equalised in the 13th minute and while both sides had chances to win the match, they had to settle for a draw.
Ghana went in front in their encounter after six minutes when Albert Adomah's ball in front the right was controlled with one touch by Gyan, who then lashed home a low finish with his second.
Niger almost got an instant equaliser but their goal was disallowed with Moussa Maazou penalised, somewhat harshly, for a foul on goalkeeper Fatau Dauda.
The underdogs chanced their arm again when Mohammed Chicoto went for the spectacular, with his overhead attempt sailing over.
But it was at the back where they had problems and they fell further behind in the 23rd minute.
Gyan this time turned provider and his left-wing cross was controlled by the chest and then skilfully knocked in by Atsu at the back post.
Ghana almost had a third before the break only for Kassaly Daouda to superbly parry Emmanuel Agyemang-Badu's drilled shot.
Instead number three came just four minutes after half-time.
Gyan's header was saved, but Boye, sporting a peroxide cross in his hair, was the quickest to react and tapped home the rebound from barely a yard.
Niger had no answer to their opponents' far superior ability, and they would have conceded again had Gyan not contrived to send a half-volley wide when it seemed easier to score.
It was never going to prove costly, though, as Ghana coasted to a comfortable win.
DR Congo attacked from the first whistle, with former Newcastle and Portsmouth striker Lomana LuaLua striking against the base of the post inside the first 30 seconds.
DR Congo continued to attack and they were awarded a penalty in the third minute when midfielder Yves Ilunga was tripped by Mohamed Sissoko in the area, with Mbokani hammering into the top corner from the spot.
It was just the start Claude Le Roy had wanted, with the coach bemoaning their goalless draw against Niger last time out.
But the goal spurred Mali into action and they equalised with their first opportunity of the match. Adama Tamboura's cross from the left side of the penalty area was slotted home from close range by Samassa in the 14th minute.
They then had an excellent opportunity to take the lead midway through the half but Adama Coulibaly headed wide from an inswinging corner by Seydou Keita, whose cross to West Ham striker Modibo Maiga shortly before the interval was nodded over.
It had been a real battle and with both teams capable of qualification, no one from either side wanted to make a costly mistake.
But Mali were holding firm, with Samba Diakite, Keita and Sissoko excelling in midfield to snuff out any openings DR Congo had.
Mbokani headed meekly wide just after the hour mark but at the other end, Robert Kidiaba's weak parry from Samassa's 20-yard effort only just went wide of the goal and spared DR Congo's blushes.
Mali goalkeeper Mamadou Samassa made a fantastic save from Youssouf Mulumbu's effort from just outside the area to keep the scores level.
But Mali showed they were not content to hang on for a draw, with substitute Diabate running through on goal and rounding Kidiaba but seeing his strike from a narrow angle hit the outside of a post.
It mattered little, however, as Les Aigles hung on in the closing stages to send DR Congo, who had drawn all three group matches, crashing out.