A Queens man detained by immigration officials last month has been granted an emergency stay that temporarily prevents his deportation.

A federal judge ordered the release of Xiu Qing You.

You came to the U.S. from China illegally in the year 2000. He received a deportation order that same year, but it hadn't been enforced until now.

ICE agents arrested You during a mandatory interview for his green card in May.

He has no criminal record, and his wife and two daughters are American citizens.