Dr. John Thomas, on appeal from the district court’s denial of his petition for a writ of habeas corpus, claims that the double jeopardy clause of the fifth amendment bars his retrial in state court for the assault and battery of his estranged wife. Dr. Thomas contends that (1) the district court improperly determined his attorney had a conflict of interest, and (2) his retrial is barred because the trial judge declared a mistrial sua sponte, after jeopardy had attached, without manifest necessity.
I
In 1979, Wanda Thomas married Dr. Thomas although, at the time, she was still married to a Mr. Popa. Mrs. Thomas’ marriage to Popa was ultimately dissolved in 1981. Joseph W. Fairfield represented Mrs. Thomas in her dissolution from Popa. In March 1985, Mrs. Thomas began dissolution proceedings against Dr. Thomas. Fairfield represented Dr. Thomas in those proceedings.
In August of 1985, the district attorney filed a criminal complaint charging Dr. Thomas with assault and battery of his wife, in violation of California Penal Code §§ 245(a)(1) and 242 (West’s 1988). Trial began in Antelope Valley Municipal Court on December 18, 1985; Fairfield also represented Dr. Thomas in those proceedings. A jury was empaneled and sworn. In his opening statement, Fairfield told the jury that Mrs. Thomas fabricated the assault charges in retaliation for her husband’s alleging, in the course of their pending dissolution, that she was a bigamist who married him in bad faith and who was, therefore, not entitled to community assets of the marriage. The prosecutor interposed an objection. A conference in chambers followed in which Fairfield produced documents indicating that Mrs. Thomas’ previous marriage was not dissolved when she married Dr. Thomas. Fairfield also revealed that he had represented Mrs. Thomas in the 1981 Popa dissolution proceedings.
The prosecutor moved that Fairfield be disqualified for a conflict of interest. Fair-field denied the existence of a conflict and said he would confine his evidence and cross-examination concerning the retaliation defense to the dates of Mrs. Thomas’ divorces and marriages. Fairfield also said he would abandon the bigamy motive. However, the trial court agreed with the prosecution that Fairfield had a disabling conflict of interest. Because Dr. Thomas would not waive any conflict of interest or agree to a mistrial, the trial court declared a mistrial sua sponte and set the matter for retrial on January 28, 1986.
Dr. Thomas began efforts to prevent a retrial. Still represented by Fairfield, Dr. Thomas moved in municipal court for an order of acquittal on the grounds that retrial was barred by double jeopardy. After his motion was denied, Dr. Thomas sought a writ of prohibition in Superior Court of Los Angeles County which was also denied on February 6, 1986. The California Court of Appeal denied Thomas’ petition for review of the Superior Court’s decision on February 25, 1986.
On March 3, 1986, there were further proceedings in municipal court. Dr. Thomas told the trial court he wished to waive any conflict of interest. However, when the prosecutor attempted to obtain a waiver, it became apparent that Dr. Thomas was not making a knowing, informed, and intelligent waiver since he had not discussed the potential penalties he would face on the charges. All agreed that Dr. Thomas should talk with another lawyer before deciding whether to waive the conflict. Although Fairfield appeared for Dr. Thomas on March 3rd, the court made it clear that a conflict of interest existed which required that Dr. Thomas consult another attorney.
Dr. Thomas petitioned for a writ of prohibition in the California Supreme Court. The Supreme Court transferred the matter to the Court of Appeal, which denied the petition on April 3, 1986. Dr. Thomas then petitioned the California Supreme Court for a review of that denial. The Supreme Court granted review and transferred the *287 matter back to the Court of Appeal with instructions to issue an alternative writ. On August 29, 1986, the Court of Appeal denied the petition and discharged the alternative writ. On September 23, 1986, the Court of Appeal denied a rehearing and on December 11, 1986, the California Supreme Court denied Dr. Thomas’ petition for review.
Having thus exhausted his state court remedies, Dr. Thomas filed a petition for a writ of habeas corpus under 28 U.S.C. § 2254 in the United States District Court for the Central District of California on December 26, 1986. On September 23, 1987, the magistrate, to whom the district court referred Dr. Thomas’ petition, filed proposed findings and Dr. Thomas filed objections. On October 7, 1987, the district court adopted the magistrate’s findings, and entered a judgment denying the petition.
Dr. Thomas filed a timely notice of appeal and applied to the district court for a certificate of probable cause. The district court denied the application, certified for purposes of 28 U.S.C. § 1915(a) that the appeal was not taken in good faith, and indicated that the application was frivolous and without merit. On March 2, 1988, this court granted Dr. Thomas’ application for a certificate of probable cause.
II
A district court’s decision to grant or deny a petition for habeas corpus is reviewed de novo.
Chizen v. Hunter,
In a jury trial, “jeopardy attaches when the jury is empaneled and sworn.”
Id.
at 769 (citing
Crist v. Bretz,
The words “ ‘manifest necessity’ ... do not describe a standard that can be applied mechanically or without attention to the particular problem confronting the trial judge.”
Williams,
Because there is no allegation in this case that the prosecution intentionally caused the mistrial, the trial court’s decision to grant a mistrial should be accorded great deference and respect.
See Jarvis,
*288
In the present case, jeopardy had already attached when Fairfield’s disabling conflict of interest was discovered. We must decide whether this conflict of interest, which Thomas refused to waive, constituted “manifest necessity” for the involuntary discharge of Dr. Thomas’ original proceedings. If so, a retrial of Dr. Thomas will not violate the double jeopardy clause. 2
A
We must first decide whether the courts below erred in finding that a conflict of interest existed. The sixth amendment guarantees each criminal defendant the right to assistance of counsel “unhindered by a conflict of interests.”
3
United States v. Wheat,
With successive representation cases, “conflicts of interests may arise if [the] cases are substantially related or if the attorney reveals privileged communications of the former client or otherwise divides his loyalties.”
Mannhalt,
1
A “substantial relationship” exists if the factual contexts of the two representations are similar or related.
Trone v. Smith,
The factual link between the two representations is that Mrs. Thomas married Dr. Thomas before Fairfield completed the dissolution of her previous marriage. Dr. Thomas’ principal defense to the pending state criminal charges is that Mrs. Thomas fabricated the assault and battery charges against him in retaliation for his allegation, in the course of their pending dissolution, that Mrs. Thomas was a bigamist who married him in bad faith and was not, therefore, entitled to the community assets of the marriage. An essential component of this defense would be Mrs. Thomas’ motive for lying about the assault. The facts of the two representations are, therefore, inexorably linked because the bigamy allegation is a matter about which Fairfield might have to cross-examine Mrs. Thomas or introduce independent proof in order to establish Dr. Thomas’ defense.
Fairfield himself implicitly acknowledged this factual connection between his representations of Mrs. and Dr. Thomas when he offered to limit his evidence and cross-examination on the retaliation defense to the overlap in dates between the two marriages, and to the fact that Dr. Thomas alleged bad faith bigamy in the Thomases’ dissolution. Fairfield would not have offered to change the scope of his anticipated cross-examination of Mrs. Thomas, or entirely to withdraw the bigamy motive as a defense, if he did not think that a substantial relationship existed between the two representations.
2
The interest to be preserved by preventing attorneys from accepting representation adverse to a former client is the protection and enhancement of the professional relationship in all of its dimensions.
Trone,
Fairfield’s representation of Dr. Thomas creates the possibility that heretofore privileged information will be disclosed. Fair-field acknowledged, for example, that he would attempt to show Mrs. Thomas lied about the alleged assault and, as previously discussed, would likely find it necessary to examine or cross-examine Mrs. Thomas regarding her alleged bigamy in order to establish this defense. Should Mrs. Thom
*290
as claim her attorney-client privilege on the stand, this could block an avenue of pursuit by Fairfield of certain information to which he was privy as a result of his previous representation. The only way effectively to examine or cross-examine her would be to breach the confidence. Standing alone, this potential for disclosure of confidential communications might be a sufficient basis for a conflict-of-interest finding.
Trone,
Fairfield also appears, however, to have divided loyalties which could adversely affect his ability diligently to defend Dr. Thomas. For example, Fairfield admitted that his primary objective in defending Dr. Thomas was, in the words of the trial judge, “to try and prove that a former client is a liar.” Fairfield also suggested that he could confine his examination to the day of the attack in order to lessen the adverse effect of any potential conflict. Fairfield further admitted that he would have to curtail his planned cross-examination of Mrs. Thomas, and that he would be willing to abandon the bigamy motive.
These solutions to Fairfield’s ethical dilemma would have jeopardized Dr. Thomas’ right to vigorous, effective assistance of counsel in violation of Dr. Thomas’ sixth amendment rights. Permitting Fairfield to remain as Dr. Thomas’ attorney would have subverted the basic purposes of the professional responsibility standards and would have denied Dr. Thomas a fair trial.
We conclude that the trial court correctly determined that Fairfield was disabled from representing Dr. Thomas because of a clear and palpable conflict of interest.
B
In light of the evident conflict of interest, the trial court did not err in its decision to declare a mistrial sua sponte for “manifest necessity,” because Dr. Thomas would neither agree to a waiver of the conflict
6
nor would he consent to a mistrial. The trial judge exercised sound discretion and acted rationally and responsibly in handling the sensitive conflict of interest issue presented.
7
Had the trial court simply proceeded with the trial, reversible error would have been built in because the record would have demonstrated that Dr. Thomas did not have effective, conflict-free representation. We should be aware of the trial court’s prospects of being “whip-sawed” by assertions of error no matter which way it rules.
See Wheat,
The judgment of the district court must be AFFIRMED.
Notes
. Even though he is free after having been released on his own recognizance, Thomas may assert his double jeopardy claim in a petition for habeas corpus.
See Hensley v. Municipal Court,
. We note that the California courts have held there is no double jeopardy bar to retrial where the relationship between the accused and his counsel has irretrievably broken down after the attachment of jeopardy, frustrating the realization of a fair trial.
See People v. McNally,
. Thomas argues that the trial court violated his sixth amendment right to counsel of his own choice by refusing to allow Fairfield to continue as his trial attorney. Under the sixth amendment, criminal defendants "who can afford to retain counsel have a qualified right to obtain counsel of their choice.”
United States v. Washington,
. California law and federal law are consistent on this point. An attorney has the duty "[t]o maintain inviolate the confidence, and at every peril to himself or herself to preserve the secrets, of his or her client.” Cal.Bus. & Prof. Code § 6068(e).
See Yorn v. Superior Court,
Under both California and federal law, moreover, the ethical prohibition against acceptance of adverse employment involving prior confidential information includes potential as well as actual use of previously-acquired privileged information. Yor
n,
. For California law on this point,
see Leversen v. Superior Court,
. Dr. Thomas argues that Mrs. Thomas "waived" the conflict of interest by neither objecting to Fairfield’s representation of him in the civil proceedings filed by her for damages from the assault nor interposing an objection to Fair-field’s representation of him in the criminal proceedings. However, Mrs. Thomas’ failure to object would not constitute a complete waiver of the conflict of interest; that waiver right also belonged to Dr. Thomas, as Fairfield’s present client.
. No evidentiary hearing was necessary on the issue of Fairfield's conflict of interest.
See United States v. Jarvis,
