Mali finished third a second consecutive time at the Africa Cup of Nations by defeating Ghana 3-1 Saturday at rain-drenched Nelson Mandela Bay Stadium.
Mahamadou Samassa and Seydou Keita gave Mali a two-goal advantage by early in the second half, Kwadwo Asamoah scored a soft late goal to set up a tense finish but substitute Sigamary Diarra put the result beyond doubt in stoppage time.
It was the second successive tournament in which the Black Stars of Ghana defeated the Eagles of Mali in the mini-league first phase of the tournament only to lose out when they met a second time with the bronze medals at stake.
Victory in a possible Africa Cup farewell for 33-year-old Keita brought a happy end to the week for Mali after a 4-1 semi-final drubbing from Nigeria in an unexpectedly one-sided game.
And the deserved victory by a team much hungrier for the consolation prize will lift spirits at home with the country involved in a struggle against Islamist extremists for control of the northern region.
Former champions Ghana spent much of the match on the back foot as they tried in vain to shake off the disappointment of losing on penalties to surprise side Burkina Faso in the other semi-final.
Samassa opened the scoring on 21 minutes before another disappointing crowd in this Indian Ocean city, diving to head a cross wide of Fatawu Dauda after a superb pass from midfield set Adama Tamboura free down the left flank.
Former Barcelona midfielder Keita claimed the second goal three minutes into the second half when he latched on to a low Ousmane Coulibaly cross and fired home from close range for his third goal of the competition.
Mubarak Wakaso, joint leading scorer on four goals with Nigerian Emmanuel Emenike, wasted a great chance to edge ahead in the chase for the Golden Boot trophy when he blazed a harshly awarded penalty over.
But Ghana, who have lost three of four third-place play-offs, did pull a goal back eight minutes from time when a speculative Asamoah shot from outside the box surprisingly found its way past Soumaila Diakite.
Diarra completed the scoring three minutes into stoppage time when a long pass from midfield evaded several defenders and he took advantage with a snap shot past Dauda.
Nigeria, who won the Cup of Nations in 1980 and 1994, and Burkina Faso, whose best previous showing was reaching the 1998 semi-finals, meet Sunday at Soccer City in Soweto for the biggest African football prize.