This is an original habeas corpus proceeding. Relator Aubrey Jerald Gordon petitioned this court, seeking release from the Travis County jail where he was confined for fourteen days under the district court’s order of commitment. We released the relator on bond pending our resolution of the case. The central issue presented is whether the relator was afforded proper notice of the contempt charge of which he was ultimately convicted.
On June 26,1978, the State of Texas filed an original petition, seeking to place certain related insurance companies into receivership. Named as defendants were The Phoenix Companies, Inc., d/b/а The Phoenix Companies, and Eagle Financial Services, Glowia Lee Gordon, Buddy W. Gregory, Robert W. Martin, Phoenix Fidelity Life Insurance Company and General Protective Life Insurance Company. Relator, as an officer of the companies, was also named as a party defendant. The original petition sought a temporary restraining order, a temporary injunction and the appointment of a temporary receiver. That same day а combined “Temporary Restraining Order and Order Appointing Temporary Receiver” (hereinafter T.R.O.) was signed by the court. By its own terms, this combined' order was to expire ten days after its rendition. On July 6, 1978, the day the T.R.O. expired, an “Agreed Order for а Temporary Injunction and Order Continuing Temporary Receivership” (hereinafter temporary injunction) was signed by the court.
On November 22, 1978, the receiver filed an instrument captioned “Motion for Contempt,” which named relator as respondent and alleged that he had violated the terms of the temporary injunction in several particulars by disposing of or concealing receivership property. After examining this contempt motion, the court signеd an “Order to Show Cause.” The show cause order, however, directed the relator to appear and show cause why he should not be held in contempt for refusing to comply with the “Temporary Restraining Order and Order Appointing Temporary Receiver.” Hearing was set for November 29, 1978.
On the day of the hearing, relator filed a motion to vacate the show cause order. He argued that the T.R.O. expired by virtue of its own terms on July 6, 1978, and therefore, he could not be guilty of alleged contemptuous acts committed subsequent to the expiration of that order. The receiver conceded that the show cause order erroneously referred to the T.R.O., but argued that there was “no confusion in anybody’s mind about thе injunction against these people. . . . ” The court overruled the relator’s motion and proceeded to take evidence as to whether there had been a failure to comply with the temporary injunction. That same day an order was rendered holding the relator in contempt for disobeying the temporary injunction and sentencing him to fourteen days’ confinement in the Travis County jail. 1
In support of his petition for habeas corpus, relatоr argues that the contempt order is void inasmuch as he was ordered to show cause why he should not be held in contempt for violating the T.R.O., but without proper notice was held in contempt for violating the temporary injunction. We agree and discharge the relator.
A writ of habeas corpus is available in this state to review a contempt order
*688
entered by a lower court confining a con-temnor. The remedy is in the nature of a collaterаl attack and its purpose is not to determine the ultimate guilt or innocence of the relator, but only to ascertain whether the relator has been unlawfully imprisoned; Where the judgment ordering confinement is “void,” the confinemеnt is illegal and the relator is entitled to discharge.
See, Ex parte Rhodes,
Contemptuous conduct may be classified as either direct or constructive. Direct contempt occurs within the presence of the court; for example, an affront to the dignity of the court or disruptive conduct in the courtroom. Constructive contempt, on the other hand, is contemptuous conduct outside the presence of the court, such as the failure or refusal to comply with a valid court оrder.
Ex parte Werblud,
As we stated in
Werblud,
“this distinction has more significance than merely identifying the physical location of the contemptuous act, since more procedural safeguards have been afforded to constructive contemnors than to direct contemnors.”
It is undisputed that relator was charged and found guilty of constructive contempt in that he failed to comply with a court order. Therefore, we must detеrmine from an examination of the record whether he was afforded notice of the charge upon which he was ultimately convicted. The following excerpt from the November 29th contempt proceeding is pertinеnt:
MR. BROWN [attorney for relator]: Your Honor, the Respondent, Aubrey Jerald Gordon, most respectfully presents to the court a Motion to Set Aside the Show Cause Order. . . . The Show Cause Order itself, in essence, says, ‘Aubrey Jerald Gordon is to aрpear this date and time in this court to show cause why he should not be held in and punished for contempt of this court for his conduct in refusing to comply with this court’s Temporary Restraining Order and Order Appointing Temporary Receiver.’
[The T.R.O.] . . . expired by its terms on the face of the Order at 9:00 o’clock A.M. on the 6th day of July, 1978. So that is the life of that restraining order. .
The Motion for Contempt alleges acts occurring subsequent to the death of that order. It is impossible for him to bе in contempt of these allegations of the Restraining Order and we would move the Show Cause Order be set aside, Your Honor.
THE COURT: The only thing set for today is the Motion for Contempt?
MR. BROWN: That is it, the particular Order to Show Cause.
*689 MR. HARRIS [Attorney for the receiver]: Your Honor, there was entеred on July the 6th, an order, agreed Order of Temporary Injunction, ordering a temporary receivership; and let me show the court the Order.
The application, the Show Cause Order by error refers back to the T.R.O. and not this one [temporary injunction]. This is the one we are here on today, .
MR. BROWN: If it please the court, this is a contemptible proceeding this morning and as such, it has fine and imprisonment possibilities and therefore, the Respondent is entitled to рroper notice, .
The Order to Show Cause specifically says, ‘. . . refusing to comply with this court’s Temporary Restraining Order.’ We are ready on that, Your Honor. We did not violate and could not, by these allegations on its face. Thе Temporary Restraining Order that is the only thing that is set for this morning before this court.
As aforementioned, the lower court overruled the relator’s motion and proceeded to receive evidence as to whether there wаs a violation of the temporary injunction. The show cause order was not amended and an order holding relator in contempt was rendered the same day. Under these circumstances, we are of the opinion that the relator was not afforded notice of the charge against him, and consequently, that he was denied due process of law.
In
Ex parte Davis,
In a recent habeas corpus proceeding before this court,
Ex parte Padron,
The charge against Mr. Padrón, the one about which he was given notice to appear and on which he appeared in court and defended himself, was that he had violated the written order of March 15, 1977. His defense was that neither the March 15, 1977, order nor any other prior order had required his signature. Mr. Padrón established a complete defense to the charge which brought him before the court.
Id.
at 924 (emphasis added). We concluded “that a judgment convicting one of contempt is void when the order was based upon matter foreign to the accusation of contempt.”
Id.
at 925 (citing
Ex parte Ratliff,
Similarly, the relator in the present case was ordered to show cause why he should not be held in contempt for refusing to comply with the T.R.O. Relator appeared and attempted to defend this accusation on the basis that the alleged acts occurred after the expiration of that оrder. The court nevertheless rendered a contempt judgment predicated upon an accusation different from that contained in the order to show cause.
The receiver argues that the show cause order and the motion for contempt taken together provided the relator with ample notice that the violations of the temporary injunction were the contemptuous acts in question. We disagree. The motion and the show cause order taken together create an ambiguity as to which order was allegedly violated. In such situation, the relator was justified in relying on the accusation of contempt as contained in the legal order of the сourt — the show cause order.
We are not unmindful of the purpose the lower court sought to accomplish in the present contempt proceeding. Nevertheless, constitutional due process of law requires that notice of the accusation, an opportunity to prepare a defense, and an opportunity to be heard be afforded to the *690 alleged constructive contemnor. We therefore hold that in situations of contempt committed outside the presence of the court, the contempt judgment must be based on a valid show cause order or equivalent legal process that contains full and unambiguous notification of the acсusation of contempt. In view of this holding, relator’s other points need not be considered.
The relator is discharged.
Notes
. This order also suspended relator’s sentence provided that he comply with certain expurgation provisions within fourteen days. After finding Mr. Gordon’s attempted compliance unacceptable, the court issued an “Order of Commitment” on December 14, 1978.
