Serge Lazarevic was kidnapped in Mali in November 2011 along with fellow Frenchman Philippe Verdon.
Militants from the Al-Qaeda in the Islamic Maghreb (AQIM) group killed Philippe Verdon in 2013 in retaliation for France’s intervention in Mali.
President Francois Hollande said there were no more French hostages waiting to be freed.
Serge Lazarevic, he said, was in “relatively good health” despite the conditions of his captivity and was on his way to the neighboring country of Niger from where he would return to France.
AQIM kidnapped a number of Western hostages before the French military deployed its forces against the group in January 2013.
There were at one point at least 14 French nationals being held by Islamists in West Africa.
“There are no more French hostages in any country in the world,” Francois Hollande said.
He thanked the authorities in Niger and Mali, who had “worked towards this happy outcome”.
There have been no details about how the release of Serge Lazarevic was secured.
The French government has repeatedly denied paying ransoms for hostages.
During his captivity, Serge Lazarevic, 50, appeared in several AQIM videos.
There was concern for his father’s health in November after he was filmed pleading for his release.
Serge Lazarevic looked frail in the video and was filmed alongside a second hostage, Dutchman Sjaak Rijke.
It is not clear where the two men were held or whether they were held together.
Sjaak Rijke was kidnapped in November 2011, while visiting the city of Timbuktu as a tourist. There has been no news from him since the video.
IJ4pPdPHHmwProsecutors and Donald Trump’s attorneys delivered opening statements and the first witness was called on…
The House of Representatives has finally approved $61 billion in new US military aid for…
The real estate market in the United States has always been a gauge for economic…
France's first lady Brigitte Macron will be the subject of a biopic series. Production company…
A first glimpse of the new business venture from Meghan Markle has been teased on…
Court has wrapped up for the first day of Donald Trump's long-awaited hush-money trial in…