Habeas corpus, or बन्दीप्रत्यक्षीकरण, is a writ used to challenge unlawful detention or restraint of liberty.
The court can require the detaining authority to produce the detained person and justify the legal basis of detention. If the detention is unlawful, the court can order release.