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.
IJ4pPdPHHmwImage source: Wikimedia Commons President-elect Donald Trump celebrated his election victory at the Ultimate Fighting…
Millions of voters across the US chose to return Donald Trump to the White House…
Donald Trump declares victory in the US election as he addresses jubilant supporters in Florida.…
Stocks around the world are rising as Donald Trump appears to be on the cusp…
Donald Trump has won Pennsylvania, North Carolina and Georgia and taken a lead over Kamala…
Quincy Jones, the celebrated musician and producer who worked with Michael Jackson, Frank Sinatra, Ray…