New York Habeas Corpus — Order to Show Cause is a legal document issued by a court in New York State to bring a prisoner before the court to determine whether the prisoner is being unlawfully detained or confined. The Order to Show Cause is used to challenge the legality of a prisoner's detention. It is a writ of habeas corpus, which is an ancient legal procedure that allows a person to challenge the legality of their detention in court. There are two types of New York Habeas Corpus — Order to Show Cause: 1)The First Department Habeas Corpus — Order to Show Cause, which is issued by the Appellate Division of the Supreme Court in the First Judicial Department; and 2)The Second Department Habeas Corpus — Order to Show Cause, which is issued by the Appellate Division of the Supreme Court in the Second Judicial Department. The Order to Show Cause must be served upon the warden or other officer in charge of the prisoner, and the prisoner must be brought before the court to answer the Order. The court then holds a hearing to determine whether the prisoner's detention is legal.