Court documents obtained by The Associated Press and unsealed Thursday reveal that President Donald Trump's administration held secret talks with Iran on deporting Iranian nationals even as the war between the two countries continued.

According to the filings, the Republican administration maintained contact with Iranian officials during the conflict to arrange removals, specifically for submitting travel documents and discussing what the documents describe as "possible avenues for removal." As recently as mid-October, the administration said it had plans to deport Iranians through an unnamed third country, though the documents did not specify when such deportations would be carried out.

At an October 15 court hearing, U.S. District Judge Ana Reyes expressed concern about the government's position. "We are at war with a country where the President of the United States has said, as recently as two or three days ago, if not yesterday, that it is essentially lawless," the judge said, according to a hearing transcript. "A country that is an enemy of the United States, according to the current president. A country that, according to our president, murdered tens of thousands of protestors. And what you're telling me is that the United States of America is going to send individuals back to that region, facing what you and I and everyone who would ever look at this would know would be, at a minimum, a serious threat of certain death." Justice Department attorney Dimitar Georgiev-Remmel responded, "Yes, your honor. The government is executing lawful orders of removal."

Following the hearing, the judge ordered the government to provide 24-hour notice of any finalized plans to deport Iranians to Iran or any other country, and five days' written notice before any such deportation is carried out. The court documents indicate that at least a dozen Iranian detainees held by Immigration and Customs Enforcement were notified over the past week that they were being deported to Iran, with some told it could occur as soon as the following Sunday. The Iranian American Legal Defense Fund, a legal organization representing the detainees, said one detainee attempted suicide after learning of a potential return to Iran.

The revelations emerged from an ongoing lawsuit alleging that the Trump administration's immigration agencies have been sharing confidential information about Iranian asylum seekers with the Iranian government in violation of immigration regulations. The Department of Homeland Security has denied sharing asylum application records with Tehran. According to the lawsuit, hundreds of emails between U.S. immigration officials detail coordination between the two governments to arrange the return of more than 100 Iranians on three immigration flights in September and December 2025 and January 2026.

Deportations to Iran have historically been rare because the United States and Iran lack diplomatic relations and returnees could face persecution. Under the Trump administration, however, U.S. Immigration and Customs Enforcement has aggressively pursued removals even to countries with which the United States has limited diplomatic relations or no formal ties. In June, an Iranian woman was among two dozen migrants deported to the Central African Republic. The administration has also deported individuals to El Salvador, Costa Rica, and Panama.

The State Department declined to comment on pending litigation or private diplomatic discussions, referring questions to the Department of Homeland Security, which did not immediately respond to requests for comment.