When the government starts deportation, the person has to go to immigration court. A judge listens to their case. The immigrant can:
Tell their story
Show documents
Bring witnesses
Be represented by a lawyer (at their own cost) https://www.thebulldog.law/immigration-law