(CNN) -- Somali pirates have released a Danish family of five and two other Danes after more than six months in captivity, the Danish Foreign Ministry in Copenhagen confirmed Wednesday.
The seven hostages -- which included three teenage children and their parents and two crew members -- were seized from a yacht in the Indian Ocean on February 24 this year.
"They have all now been brought to safety," the Foreign Ministry said in a statement, adding that they were doing well under the circumstances.
Officials would not confirm where the seven are now or when they will return to Denmark, the statement said.
The family was on a two-year round-the-world trip which had been due to end later in 2011, a neighbor told Danish tabloid Ekstra Bladet at the time they were taken hostage.
Six seamen from the cargo ship Leopard -- two Danes and four Filipinos -- are still being held by pirates, the Foreign Ministry added in its statement.
CNN's Jo Shelley contributed to this report.