French troops gained an enthusiastic welcome when they entered Mali more than nine years ago to help it fight a jihadist-fuelled insurgency.
On Monday, France pulled out of the country in the face of deep hostility after falling out with colonels who seized power nearly two years ago.
Here’s a look back at what happened:
– 2012: Jihadists take north –
Tuareg and rebels allied to Al-Qaeda in the Islamic Maghreb (AQIM) capture the capitals of the three northern regions of the country — Kidal, Gao and Timbuktu.
The Islamists quickly sideline the Tuareg, carry out amputations and stonings and destroy mausoleums in the fabled desert city of Timbuktu.
– 2013: France intervenes –
In January 2013 Mali appeals to France, the former colonial power, as the jihadists head south, threatening the capital Bamako.
Paris sends a 1,700-strong force, Operation Serval, which routs the rebels.
In April 2013, a UN force, MINUSMA (the United Nations Multidimensional Integrated Stabilization Mission in Mali), is launched.
It becomes one of the UN’s biggest peacekeeping operations, with more than 17,000 troops, police, civilians and volunteers deployed today.
– 2014: Operation Barkhane –
On August 1, France replaces Operation Serval with a wider mission in the Sahel called Operation Barkhane, whose name means “barchan”, or moving sand dune.
Barkhane initially deploys 3,000 troops, rising to 5,100 troops at its peak. The force operates in cooperation with five allied countries — Burkina Faso, Chad, Mali, Mauritania and Niger.
– 2015: Rising attacks –
In May and June 2015 the Malian government and former Tuareg rebels sign a peace agreement but implementation lags.
Twenty-five people — including 16 foreigners — are killed in two attacks on a hotel and a restaurant in Bamako in March and November by jihadists from a group led by one-eyed Algerian militant Mokhtar Belmokhtar.
Jihadist attacks also spread to the centre of Mali, an ethnic powder keg, and reach across the border into Niger and Burkina Faso
– 2017: G5 Sahel –
In January 2017, a suicide bombing by the same outfit on a camp in Gao grouping former rebels and pro-government militia leaves 77 dead and 120 injured.
In July, the leaders of five Sahel countries agree to create an anti-terror task force called the G5 Sahel backed by France.
– 2020-2021: Coups –
As attacks on the armed forces and civilians in central Mali mount, anger against President Ibrahim Boubacar Keita rises, culminating in a military coup August 2020.
The ensuing junta creates an interim government.
But when its civilian leaders remove soldiers from some key posts, strongman Colonel Assimi Goita stages a de-facto second coup in May 2021.
Relations with Paris deteriorate rapidly when Goita’s junta refuses to hold promised elections on schedule.
In June 2021, French President Emmanuel Macron announces that Barkhane numbers will be progressively scaled back to between 2,500 and 3,000 troops.
– 2022: withdrawal –
Russian paramilitaries from the controversial Wagner group begin deploying in Mali at the end of 2021 to shore up its military leaders.
On January 9, 2022, West African bloc ECOWAS imposes an embargo on Mali over the cancelled elections, demanding a return to civilian rule.
Tensions mount and Mali expels the French ambassador on January 31.
On February 17, France announces its intention to withdraw from Mali, a move that will go in parallel with a smaller French-led EU force called Takuba. Macron sets a deadline of four to six months.
The next day Bamako calls on Paris to withdraw its soldiers “without delay”, a request rejected by the French leader.
In early May, the junta breaks its defence agreements with Paris and, weeks later, announces it is leaving the G5 Sahel.
In late June the UN extends MINUSMA’s mandate by a year, but without French air support, which is rejected by the junta.
On July 1 Paris announces the end of Takuba, and on Monday Barkhane officially comes to a close.
Now out of Mali, France has halved its presence in the Sahel, with just 2,500 military now remaining in the region.