¶18 A petition for writ of habeas corpus commences a civil proceeding wherein the petitioner claims an illegal denial of his or her liberty. State ex rel. Zdanczewicz v. Snyder, 131 Wis. 2d 147, 151, 388 N.W.2d 612 (1986). A habeas petition must contain a statement of the legal issues and a sufficient statement of facts that bear on those legal issues, which if found to be true, would entitle the petitioner to relief. Wis. Stat. § 809.51(1); State ex rel. Smalley v. Morgan, 211 Wis. 2d 795, 802, 565 N.W.2d 805 (Ct. App. 1997). Habeas corpus relief is available only when the petitioner is being held in violation of a constitutional right or by a tribunal that lacks jurisdiction, and in either case, only when no other remedy at law is adequate to provide relief. Marberry, 262 Wis. 2d 720, ¶2. Habeas is an equitable remedy, United States ex rel. Smith v. Baldi, 344 U.S. 561 (1953), for which there is no constitutional right to counsel, State v. Evans, 2004 WI 84, ¶32, 273 Wis. 2d 192, 682 N.W.2d 784.