PORT ELIZABETH, South Africa (AP) -- Mali defeated Ghana 3-1 to finish third in the African Cup of Nations on Saturday, overcoming the Black Stars for the second consecutive year in the consolation match.
Striker Mahamadou Samassa opened the scoring with a header in the 21st minute, captain Seydou Keita added to the lead with a close-range shot in the 48th, and Sigamary Diarra sealed the victory in stoppage time, ending Mali's emotional campaign.
Kwadwo Asamoah scored for Ghana in the 82nd. Ghana midfielder Wakaso Mubarak missed a penalty kick early in the second half, his first miss in four spot-kicks at this African Cup.
Last year, Mali beat Ghana 2-0 in the consolation match. It entered this year's tournament with players saying they were motivated to bring joy to fans enduring political instability and fighting back home.
"I'm proud and very happy. The players worked hard for this bronze medal,'' Mali coach Patrice Carteron said. "For a nation like Mali, this is a fantastic result.''
Saturday's loss at Nelson Mandela Bay Stadium added even more disappointment to Ghana, which reached the semifinals the last four times but was leaving without the title again.
Ghana was relegated to the third-place match after losing the semifinal to Burkina Faso in a penalty shootout. The Black Stars won the last of their four titles in 1982.
"The players did so well getting to the semifinals,'' Ghana coach Kwesi Appiah said. "It's disappointing but the group is young and given the same opportunity in the future they will do well because they will be more experienced.''
Mali was trying to make it to the final for the first time in more than 40 years, but its hopes of a first title ended after a 4-1 defeat to Nigeria in the semis. Its best campaign remains a runner-up finish in 1972.
The Malians dedicated this latest uplifting campaign to their conflict-torn home country, where French troops are fighting Islamist extremists.
Samassa scored with a diving header from near the penalty spot after a breakaway on the left side, and former Barcelona player Keita netted his third goal of the tournament with an easy shot from close range after a cross from the right.
Keita scored again in the 72nd but the goal was called off because of offside.
Ghana pulled one closer near the end with a long-range left-footed shot that curled to fool Mali goalkeeper Soumaila Diakite, who was his team's hero in the penalty shootout against host South Africa in the quarterfinals.
Diarra closed the scoring in the third minute of stoppage time, firing a left-footed shot into the far corner after beating Ghana defenders to a long ball inside the area.
Ghana had a chance to get on the board early in the second half after the referee called a handball inside the Mali box, but Mubarak sent his shot from the spot way over the crossbar. The Espanyol midfielder entered the match as one of the tournament's leading scorers with four goals along with Nigeria's Emmanuel Emenike, who will play in Sunday's final if he recovers from an injury.