A writ of habeas corpus is a legal order that requires a person who is holding another in custody to bring the detainee before a court, ensuring that the detainee's imprisonment is lawful. This legal mechanism serves as a crucial safeguard against unlawful detention and protects individual freedom by allowing courts to assess the legality of someone's confinement.
congrats on reading the definition of writ of habeas corpus. now let's actually learn it.