Hostage Johan Gustafsson, held by al-Qaeda in Mali since 2011, has been released, the Swedish government says.
Mr. Gustafsson, 42, is being flown back to Sweden from Africa, Sweden's Foreign Minister Margot Wallström stated in a statement on Monday.
He was seized by al-Qaeda in the Islamic Maghreb (AQIM) along with two other men, one of whom was freed in a dawn raid in 2015.
Ms. Wallström said Mr. Gustafsson was "in good spirits," local media report.
"It is with great pleasure that I can announce that Johan Gustafsson has been released," Ms. Wallström added.
She said that the Swede's release was thanks to "extensive efforts" and co-operation between the Swedish foreign ministry, police and "foreign authorities."
Ms. Wallström said she had spoken with Mr. Gustafsson, who she described as being "happy" and "overwhelmed" by Monday's events.
"I cannot say more at the current time," she added.
weden's former Foreign Minister Carl Bildt said that Mr. Gustafsson's kidnapping weighed heavily on his mind during his time in the role, which ended in 2014.
He tweeted on Monday: "Extremely gratifying that Johan Gustafsson is free. No single case concerned me more as foreign minister."
A French soldier stands guard in an armored vehicle in northern Mali in March 2013.