The sailors, who had been held in dire conditions and suffered beatings and torture, included seven men from Bangladesh, one Indian, one Iranian, and two from Sri Lanka.
John Steed, a former British army colonel who helped negotiate their release, confirmed they had been freed.
"Currently airborne with hostages," Steed told AFP by text message.
Their boat, the Malaysian-flagged container ship MV Albedo was captured in November 2010 but sank in rough seas last July.
Seven other Pakistani crew members were released in 2012 after a businessman paid their ransom, but those remaining could not afford the hefty demands of the pirates.
"The crew members and their families have suffered unimaginable distress," United Nations special envoy to Somalia Nicholas Kay said in a statement.
"The crew underwent the trauma of piracy, their ship sinking, and then being held ashore in very difficult conditions."
Exact details of how they were released have not been given, but the United Nations said they had been handed over to their care, and "will be repatriated to their home countries over the coming days."
The sailors, like 38 others from different boats who remain hostage, were abandoned by their ship's owner whose willingness to pay to free them sank with their boat.
"While we have seen a significant reduction in piracy off the coast of Somalia in recent years, I remain deeply concerned that 38 other crew members are still being held hostage," Kay added.
Pirate attacks off Somalia have been slashed in recent years, with international fleets patrolling the Gulf of Aden and Indian Ocean, as well as armed guards being posted aboard many vessels.
"I call on those who continue to detain these crew members to release them without further delay so they can rejoin their families and loved ones," Kay said.
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
