The writ of Habeas Corpus (meaning 'to have the body of') is issued by a court to a person or authority who has detained another person, directing them to produce the body of the detained person before the court. The court then examines the legality of the detention and, if found to be illegal, orders the release of the person. This writ is a crucial safeguard against arbitrary arrest and detention.