(a) Each court of appeals or a justice of a court of appeals may issue a writ of mandamus and all other writs necessary to enforce the jurisdiction of the court.
(b) Subject to Subsection (c-1), each court of appeals for a court of appeals district may issue all writs of mandamus, agreeable to the principles of law regulating those writs, against a judge of a district, statutory county, statutory probate county, or county court in the court of appeals district.

Terms Used In Texas Government Code 22.221

  • Appellate: About appeals; an appellate court has the power to review the judgement of another lower court or tribunal.
  • Bail: Security given for the release of a criminal defendant or witness from legal custody (usually in the form of money) to secure his/her appearance on the day and time appointed.
  • Habeas corpus: A writ that is usually used to bring a prisoner before the court to determine the legality of his imprisonment. It may also be used to bring a person in custody before the court to give testimony, or to be prosecuted.
  • Jurisdiction: (1) The legal authority of a court to hear and decide a case. Concurrent jurisdiction exists when two courts have simultaneous responsibility for the same case. (2) The geographic area over which the court has authority to decide cases.
  • Justice: when applied to a magistrate, means justice of the peace. See Texas Government Code 312.011
  • Person: includes corporation, organization, government or governmental subdivision or agency, business trust, estate, trust, partnership, association, and any other legal entity. See Texas Government Code 311.005
  • Probate: Proving a will
  • Writ: A formal written command, issued from the court, requiring the performance of a specific act.

(c) Each court of appeals for a court of appeals district, other than the Court of Appeals for the Fifteenth Court of Appeals District, may issue all writs of mandamus, agreeable to the principles of law regulating those writs, against:
(1) a judge of a district court who is acting as a magistrate at a court of inquiry under Chapter 52, Code of Criminal Procedure, in the court of appeals district; or
(2) an associate judge of a district or county court appointed by a judge under Chapter 201, Family Code, in the court of appeals district for the judge who appointed the associate judge.
(c-1) The original jurisdiction of the Court of Appeals for the Fifteenth Court of Appeals District to issue writs is limited to writs arising out of matters over which the court has exclusive intermediate appellate jurisdiction under § 22.220(d).
(d) Concurrently with the supreme court, the court of appeals of a court of appeals district in which a person is restrained in his liberty, or a justice of the court of appeals, may issue a writ of habeas corpus when it appears that the restraint of liberty is by virtue of an order, process, or commitment issued by a court or judge because of the violation of an order, judgment, or decree previously made, rendered, or entered by the court or judge in a civil case. Pending the hearing of an application for a writ of habeas corpus, the court of appeals or a justice of the court of appeals may admit to bail a person to whom the writ of habeas corpus may be granted.