- Source: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/140920153616-nr-cabrera-intv-isis-releases-hostages-turkey-00000603.jpg?q=x_187,y_20,h_576,w_1024,c_crop/h_540,w_960" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/140920153616-nr-cabrera-intv-isis-releases-hostages-turkey-00000603.jpg?q=x_187,y_20,h_576,w_1024,c_crop/h_540,w_960" } }" data-vr-video="false" data-show-html="" data-byline-html="
" data-timestamp-html="
Updated 1:56 PM EDT, Fri October 17, 2014
" data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2014-09-20T19:43:29Z" data-video-section="world" data-canonical-url="https://www.cnn.com/videos/world/2014/09/20/nr-cabrera-intv-isis-releases-hostages-turkey.cnn" data-branding-key="" data-video-slug="nr cabrera intv isis releases hostages turkey" data-first-publish-slug="nr cabrera intv isis releases hostages turkey" data-video-tags="" data-details="">
nr cabrera intv isis releases hostages turkey_00000603.jpg
ISIS releases 49 hostages to Turkey
02:46 - Source: CNN

Story highlights

Hostages included the consul general of the Turkish consulate in Mosul

His family and other citizens who were at the consulate were also abducted

It's unclear how they were freed, but Erdogan thanked Turkish intelligence officials

CNN  — 

Dozens of Turkish hostages abducted by Islamist militants in northern Iraq were freed Saturday after three months in captivity.

Militants from the Islamic State in Iraq and Syria raided the Turkish consulate in June and seized 49 people, including Consul General Ozturk Yilmaz.

Others abducted included his family, children and other citizens who were at the consulate in Mosul at the time, Turkish President Recep Tayyip Erdogan said.

Of the total, three were local employees and 46 were Turkish citizens. All were freed and the latter are now in their home country, Turkish authorities said.

It’s unclear how they were freed, but Erdogan thanked Turkish intelligence officials in a statement on his website.

“I thank … every single member of the national intelligence agency from the director to the field operatives,” he said. “I congratulate them for their big success from the bottom of my heart.”

Prime Minister Ahmet Davutoglu described it as a late-night operation.

“At around 11:30 at night, this rescue effort reached its final stage,” he told a crowd waving flags in Ankara. “Be assured that for months we worked toward this. I thank those in our national intelligence agency who worked relentlessly and with great sacrifice.”

Mosul, a city of 1.6 million, collapsed swiftly when the militants attacked on June 10. The heavily armed radicals overran police stations, freed more than 1,000 prisoners from the local jail and took over the international airport.

American-trained Iraqi forces ran in the face of the onslaught, leaving behind uniforms, weapons and armored vehicles.

ISIS, which calls itself the Islamic State, has declared that it has established a “caliphate” spanning large swaths of Iraq and Syria.

Turkey has been wary of joining a U.S. coalition to battle the militants because of the hostages, according to Faysal Itani, a fellow at the Atlantic Council’s Center for the Middle East.

READ MORE: How the “Islamic State” is governed
READ MORE: Who is English speaker in “Flames of War?”
READ MORE: Opinion: Why airstrikes won’t beat ISIS

CNN’s Gul Tuysuz contributed to this report.