What is a Habeas Petition in an Immigration Case? A habeas petition is a way to ask a federal judge to decide whether the government has the legal authority to