Leaders from across Africa and France watched the inauguration of Mali President Ibrahim Boubacar Keita in front of thousands of his supporters on Thursday as the nation entered a new era of democracy after months of political chaos.
Idriss Deby of Chad, the Ivory Coast's Alassane Ouattara and Moroccan king Mohammed VI were prominent guests among numerous heads of state invited to welcome the new leader, elected by a landslide on August 11.
French President Francois Hollande took centre stage at the 55,000-seat March 26 Stadium in the capital Bamako, with the ceremony drawing a line under military action launched by Paris in January to oust armed Islamists from northern Mali.
"We are at the successful conclusion, because it is a victory, a big victory for Mali that we celebrate together today," Hollande said to loud applause.
The ceremony began with Hollande and Keita standing before the Malian flag for the national anthem before Hollande addressed the crowd ahead of musical and cultural performances and military marches.
"We have won this war (but) France has paid a price for the liberation," said Hollande, honouring seven French soldiers who died in Mali and paying tribute to troops who were wounded in combat.
He also honoured Mali's soldiers and the "brave Chadian soldiers" who recorded at least 38 deaths during the campaign.
"Today, Mali has carved out its destiny, it has chosen its president," said Hollande, vowing that Paris would remain at its former colony's side and help it on the road to reconciliation.
Chadian President Deby called for vigilance among the people of Mali and the region, warning that although "terrorists" had been defeated the "gangrene remains and can return at any moment".
Keita pledged to unite Mali and end endemic corruption when he was sworn in on September 4 to lead the deeply-divided west African nation's emergence from months of political crisis sparked by a military coup in March last year.
He gave a much more low-profile speech on Thursday, thanking the assembled heads of state and saying Mali was linked by "a pact of honour and a pact of blood to its allies".
Army officers angry at the level of support they had received to combat a separatist Tuareg rebellion in the north overthrew the democratically-elected government of president Amadou Toumani Toure on March 22, 2012.
In the chaos that followed, the Tuareg seized control of an area larger than France before being ousted by Al-Qaeda-linked groups that imposed a brutal interpretation of Islamic law on the local population, carrying out amputations and executions.
Their actions drew worldwide condemnation and their march south prompted France to launch a military offensive in January at Mali's behest to oust the Islamists.
Keita emerged as Mali's new leader in presidential elections deemed the most successful since the country gained independence from France in 1960, allowing Paris to begin withdrawing most of the 4,500 troops it had sent in.
Mali's new government on Wednesday set November 24 as the date for the first parliamentary elections since the coup, with France expected to keep 1,000 soldiers on the ground until at least the end of the year.
The return to democracy has been praised by Hollande, who was accompanied by four senior ministers and is expected to hold talks with Keita on security, reconciliation, economic recovery and the fight against corruption during his visit.
"The question is, should we stay to ensure security during the election? The answer is yes," Hollande told reporters after the ceremony.
"Our work will only really be finished when all the elections are completed. And these parliamentary elections must be as transparent as the presidential election."
Keita's workload over the coming months will include tackling an economy battered by political chaos and war, as well as healing ethnic divisions in the north and managing the return of 500,000 people who fled an Islamist insurgency.
Hollande said he would also hold a mini-summit while he was in Bamako on the security situation in the Central African Republic with the leaders of Gabon, Chad and Cameroon, the main contributors to an African Union force in the CAR, occupied by rebels since March.
President Francois Hollande of France listens to his Malian counterpart Ibrahim Boubacar Keita on September 19, 2013 at the Bamako airport.
A man holds a French flag and cheers during the inauguration of Mali's new president in Bamako on September 19, 2013.
A woman poses for a photograph as she attends the inauguration of Mali's new president, on September 19, 2013 in Bamako.