Sailors had been released after talks between the owners of the ship and the pirates, Censor.NET reports citing Radio Liberty.
The sailors were at the Frankfurt airport and would return home next week.
The BBC Caribbean cargo vessel belongs to the German Briese Schiffahrts cargo company. It was attacked in Nigeria's waters on February 5.
"Two our men were killed. We will avenge them and push enemy as far as Russian border," – Ukrainian marines on battle near Vodiane. VIDEO(0)
Ukraine willing to make resolute action to release hostages held in Russia and occupied territories, - Poroshenko(0)