France has agreed to a request from Burkina Faso’s military leaders to withdraw all its troops from the country.
Burkina Faso, which is currently battling a jihadist insurgency, says it wants to defend itself.
There are currently 400 French special forces in Burkina Faso, who have just one month to leave.
Last year France also left neighbouring Mali, where its troops had spent eight years fighting Islamist militants.
France has kept close military ties with many of its former colonies in West Africa and has been helping several of them fight jihadists who are active across the region under the now terminated Operation Barkhane.
However, its continued economic links have led to some resentment of its role, which Russia has tapped into.
Both Mali and the Central African Republic are now working with the Russian mercenary group, Wagner.
Burkina Faso has denied reports it will also engage the Wagner Group against the jihadists but a liaison team from the mercenaries has already visited, according to the AFP news agency.
A French foreign ministry spokesperson confirmed that the Burkinabè government had sent a written request for its troops to leave.
“We will respect the terms of the agreement by honouring this request,” the spokesperson said.
Burkina Faso has been hit by a decade-long insurgency that has forced nearly two million people from their homes.
Most recently, suspected jihadists kidnapped around 60 women who were foraging for food in the north of the country, and at the start of the month bodies of 28 people who had been shot dead were found in the north-western town of Nouna. The women have since been released.
Since Capt Ibrahim Traoré seized power in Burkina Faso in September, there has been widespread speculation that he might start working with Russian mercenaries, which neighbouring Ghana described as “distressing”.
Capt Traoré has promised to win back territory from the jihadists, and to hold democratic elections in July 2024.