SEOUL, South Korea (AP) — A South Korean charter plane left for the U.S. on Wednesday to bring back Korean workers detained in an immigration raid in Georgia. A total of 475 workers, more than 300 of them South Koreans, were rounded up in the Sept. 4 raid at the battery factory under construction at Hyundai’s sprawling auto plant west of Savannah. Some were shown shackled with chains around their hands, ankles, and waists in video released by U.S. authorities.

South Korea’s government later said it reached an agreement with the U.S. for the release of the workers. South Korean TV footage showed what it described as the charter plane taking off at Incheon International Airport, just west of Seoul, on Wednesday morning. The plane is expected to return to South Korea with the detained workers on Thursday afternoon, according to media reports.

The workplace raid by the U.S. Homeland Security agency was its largest yet as it pursues its mass deportation agenda. It targeted Georgia, where many large South Korean businesses operate and plan future investments. Just weeks ago, South Korea promised hundreds of billions of dollars in U.S. investments to pave the way for a tariff deal. U.S. President Donald Trump and South Korean President Lee Jae Myung held their first summit in Washington on Aug. 25.

Trump noted this week that the workers “were here illegally,” and emphasized the need for the U.S. to collaborate with other countries for training specialists in essential fields like battery and computer manufacturing.