What is writ of habeas corpus?

Legal action taken against a citizen to bring them to court.