Opinion
The question confronting us here is whether a defendant in a civil action may file a cross-complaint therein seeking a declaratory judgment that the action is being maliciously prosecuted, We have concluded that precedent, principle, practicality and policy forbid such a cross-complaint, which entails the risk of discouraging legitimate claimants and, at least in the instant case, pits plaintiff and her attorney against each other as adversaries.
The present petition arises out of an action for damages for medical malpractice brought by Leona O. Babb, through her attorney Timothy J. Crowley. In the instant proceedings Mrs. Babb and Mr. Crowley are petitioners and Dr. Huntington is the real party in interest. In the underlying action, Dr. Huntington filed an answer to Mrs. Babb’s third amended complaint and at the same time, a cross-complaint, 1 against both Mrs. Babb *845 and her attorney Mr. Crowley seeking a declaratory judgment that (1) in the event that the malpractice action terminated favorably to him, Mrs. Babb and attorney Crowley be adjudged to have instituted and prosecuted it maliciously and without probable cause; and (2) in such event he be entitled to recover costs and attorneys’ fees expended in the action. 2
Petitioners demurred generally to the cross-complaint, contending that a favorable termination of the prior proceeding is a necessary precondition to the maintenance of a malicious prosecution action. Although it recognized this long-standing rule of law, the trial court nevertheless overruled the demurrer on the ground that the cross-complaint was not premature since it sought only declaratory relief. Petitioners seek a writ of prohibition to prevent the trial court from proceeding with the malicious prosecution cross-action.
It is hornbook law that the plaintiff in a malicious prosecution action must plead and prove that the prior judicial proceeding of which he complains terminated in his favor.
(White Lighting Co.
v.
Wolfson
(1968)
Because of this requirement, it is obvious that a defendant cannot cross-complain or counterclaim for malicious prosecution in the first or main action
(Baker
v.
Littman, supra,
The requirement of a favorable termination of the principal litigation before institution of a malicious prosecution action is supported by conceptual, practical, and policy reasons.
First, there is a certain metaphysical difficulty in permitting a counterclaim for malicious prosecution since theoretically that cause of action does not yet exist. (See fn. 1,
ante.)
The principle is well established that the cause of action for malicious prosecution first accrues at the conclusion of the litigation in favor of the party allegedly prosecuted maliciously.
(Oppenheimer
v.
Tamblyn
(1958)
Second, the requirements of practical judicial administration dictate the
*847
retention of the “favorable termination” rule. It prevents the inconsistent judgments which may result if a malicious prosecution action were permitted to be filed before the conclusion of the principal suit. In such a situation, with two triers of fact operating independently, the plaintiff in the main action may prevail in his claim, yet lose the malicious prosecution suit. Furthermore, the rule tends to eliminate unnecessary litigation, for a defendant who loses in the principal action will not institute a malicious prosecution suit, since the adverse judgment operates to establish conclusively that the plaintiff had probable cause.
(Murdock
v.
Gerth
(1944)
Third, the rule of favorable termination is supported by strong policy considerations. Since malicious prosecution is a cause of action not favored by the law
(Sebastian v. Crowley
(1940)
We can conceive of no reason why the simple and—one would have thought—transparent expedient of casting the cross-complaint in the form of a request for declaratory relief should make any difference. Certainly most, if not all, of the problems outlined above would remain. The identical issues of malice and probable cause would, of necessity, be litigated, and their inclusion, even by indirect reference, as part of the trial of the cause of action for malpractice would involve a substantial risk of confusing or even influencing a jury.
Nor is there any particular need to employ the declaratory judgment procedure in this situation. The purpose of a judicial declaration of rights in advance of an actual tortious incident is to enable the parties to shape their conduct so as to avoid a breach. “[Djeclaratory procedure operates prospectively, and not merely for the redress of past wrongs. It serves to set controversies at rest before they lead to repudiation of obligations, invasion of rights or commission of wrongs; in short, the remedy is to be used in the interests of preventive justice, to declare rights rather than execute them.”
(Travers
v.
Louden
(1967)
Dr. Huntington urges, however, that we should follow the example of indemnity cases, where we permit a defendant to file a cross-complaint seeking declaration of his right to indemnity from third persons as part of the very suit in which his own liability is being determined. He cites, for example,
Rimington
v.
General Accident Group of Ins. Cos.
(1962)
*849
Although such cases present a surface similarity to the instant claim, in that they allow a defendant to seek a declaration of rights before his own obligation has been adjudged, they differ in several important respects. For one thing, since the cross-complaint for declaratory relief in such actions is usually brought against someone other than the original plaintiff, it is unlikely to have the deterrent and harassing effect of a malicious prosecution cross-action brought against the plaintiff in the underlying action. For this same reason, our concern that the plaintiff’s attorney will be named as a defendant in the malicious prosecution claim, and will thus become a potential adversary of his client, is inapplicable to indemnity cross-complaints. Finally, since an indemnity claim usually arises out of the same transaction as the principal action at issue,
5
the same evidence is relevant to both.
(Rimington
v.
General Accident Group of Ins. Cos., supra,
Dr. Huntington also relies on
Munson
v.
Linnick
(1967)
We disagree because we find Munson distinguishable on several grounds. The Munson parties had stipulated in a joint pretrial statement that, in the event that the prior default judgment was set aside and an opposite judgment entered, one of the issues to be decided was whether the former *850 action had been maliciously prosecuted. Here, there was no such stipulation. Furthermore, the defendant in Munson had not objected to this arrangement in the trial court, but had raised the issue for the first time on appeal; thus, the Court of Appeal implied, he had waived his objection. Obviously no waiver occurred in the case at bench. Finally, Munson involved a separate, independent complaint and was thus at least procedurally correct under the declaratory judgment statute. (Code Civ. Proc., § 1060.)
Although the trial court in the instant action recognized that there were procedural differences between this suit and Munson, it relied on dictum in Munson which appears to authorize the granting of a declaratory judgment for malicious prosecution before the prior suit is terminated. 6 This language may well have induced the filing of the cross-complaint in the instant case, and to prevent reliance on such language in the future, we hereby disapprove it.
Having concluded that the trial court erred in overruling petitioners’ demurrer, we must now consider whether an extraordinary writ is the appropriate remedy by which to challenge such error. Petitioners sought a writ of prohibition, and we issued an alternative writ of prohibition. Although prohibition may be properly available, we feel that under the circumstances mandate is a more appropriate remedy and that petitioners have made out a case entitling them to such writ. Accordingly we treat the petition as one for mandate and we order the issuance of a peremptory writ.
(Powell
v.
Superior Court
(1957)
The Code of Civil Procedure provides that mandate “may be issued . . . to compel the performance of an act which the law specially enjoins”
*851
(§ 1085) where “there is not a plain, speedy, and adequate remedy, in the ordinary course of law.” (§ 1086.) Although it is well established that mandamus cannot be issued to control a court’s discretion, in unusual circumstances the writ will lie where, under the facts, that discretion can be exercised in only one way.
(Hilmer
v.
Superior Court
(1934)
We wish to emphasize, however, that our action in this matter- should not be understood to indicate our willingness to employ the prerogative writs to review rulings on pleadings. Indeed, we perform such a function of intermediate review with extreme reluctance. “In most . . . cases, as is true of most other interim orders, the parties must be relegated to a review of the order on appeal from the final judgment.”
(Oceanside Union School Dist.
v.
Superior Court
(1962)
The alternative writ of prohibition is discharged. Let a peremptory *852 writ of mandate issue, commanding the trial court to vacate its order overruling petitioners’ demurrer to the cross-complaint and to sustain said demurrer without leave to amend.
Wright, C. J., McComb, J., Peters, J., Tobriner, J., Mosk, J., and Burke, J., concurred.
Notes
While entitled a “cross-complaint," defendant’s pleading obviously fails to satisfy the requirement of section 442 of the Code of Civil Procedure that a cross-complaint relate to or depend upon the “contract, transaction, matter, happening or accident upon which the action is brought. . . .” The plaintiff’s complaint concerns alleged medical malpractice. The subject of the “cross-complaint” is the allegedly wrongful institution of plaintiff’s action. Even under a liberal view of the transaction clause of section 442, these are too unrelated to permit a cross-complaint. “The connection between the two is not that of substance but of historical sequence. There is, of course, a thread of sequence in the sense of the common expression, ‘One thing led to another,’ but there is no agreement between the subject matter of plaintiff’s action and that of defendant’s [cross-complaint] in interest or substance or similarity of causes.”
(Manufacturers & Jobbers Finance Corp.
v.
Lane
(1942)
The cross-action also fails to qualify as a counterclaim. Section 438 of the Code of Civil Procedure provides that a counterclaim “must exist in favor of a defendant and against a plaintiff. . . .” (Italics added.) But, as will be discussed, infra, the malicious prosecution claim does not “exist” until the original malpractice action has terminated in favor of defendant. “It is contended that if not valid as cross-
*845
complaints, the cross-actions should have been considered by the court as counterclaims. Under the requirements of section 438, Code of Civil Procedure, a counterclaim may not be set up unless it constitutes an existing cause of action, the test being whether the defendant is able to maintain an independent action on the demand asserted as a counterclaim. [Citations.] Appellants’ argument is thus without merit because no cause of action for malicious prosecution based on the filing of respondent’s action then existed, nor does it now exist, nor can it possibly accrue until respondent’s present action terminates in their favor.”
(Baker
v.
Liftman
(1956)
The fact that the cross-complaint was framed as one for declaratory relief does not alter this requirement of an “existing” cause of action. As we discuss further, infra, section 1060 of the Code of Civil Procedure, the declaratory judgment provision, authorizes actions for declaratory relief only in the form of complaints and cross-complaints; declaratory relief in the form of a counterclaim is not provided for. Consequently, there can be no such creature as a counterclaim for declaratory judgment; to be a valid counterclaim, a cause of action must exist when the cross-action is filed.
Consequently, Dr. Huntington’s cross-action is a procedural anomaly which satisfies the requirements of neither a cross-complaint nor a counterclaim.
Although Dr. Huntington’s pleading is somewhat ambiguous on the issue, it appears to contemplate that evidence on both the medical malpractice and the malicious prosecution claims would be introduced in the same trial, and the jury instructed to reach a verdict on the malicious prosecution action only if its verdict in the malpractice suit is favorable to Huntington. However, at oral argument counsel contended that the trial court might utilize its discretion under section 1048 of the Code of Civil Procedure to order separate trials on the issues of malpractice and malicious prosecution, the latter being set for trial only if trial of the former terminated favorably to defendant. (See fn. 3, infra.)
Dr. Huntington contends that these practical considerations are circumvented by the form of his cross-action, i.e., one for a declaratory judgment “should the action for malpractice ... be terminated in favor of cross-complainant.” In particular, counsel at oral argument claimed that such problems are obviated by the trial court’s power, under section 1048 of the Code of Civil Procedure, to order separate trials of the issues in the complaint and cross-complaint. (See fn. 2,
ante.)
However, there is nothing in the record to assure us that the trial court would utilize this protective device, which, by the very terms of that code section, is left to the court’s discretion. (See
Carpenson
v.
Najarían
(1967)
Damages potentially recoverable in a malicious prosecution action are substantial. They include out-of-pocket expenditures, such as attorney’s and other legal fees
(Stevens
v.
Chisolm
(1919)
Otherwise, of course, it would fail to satisfy the requirements of a cross-complaint. (Code Civ. Proc., § 442.) As a valid cross-complaint, the indemnity cross-action may properly take the form of a request for declaratory relief. (Code Civ. Proc., § 1060.) By contrast, since the instant cross-action does not qualify as a cross-complaint (see fn. 1, ante), a claim for declaratory judgment is statutorily unauthorized. (See fn. 1, ante, and infra.)
The trial court quoted approvingly the following excerpt: “Assuming, as contended by defendant, the award of damages was premised upon liability under a malicious prosecution theory, the fact that at the time the declaratory relief action was filed a determination of the Singer action favorable to plaintiff had not been made did not foreclose the court in the declaratory relief action from determining the rights of the parties under the facts existing at the time of judgment. An action for declaratory relief is equitable in nature. A court of equity will make a complete determination of the controversy between the parties to such an action in accord with the facts as they exist at the time of its decree. [Citations.] The allegations in the complaint of lack of probable cause, malice and abuse of judicial process adequately advised defendant of the basis of plaintiff’s claim for damages; that this claim was dependent upon a favorable termination of the Singer action; and would be adjudicated in the event the default judgment was set aside and a judgment favorable to Munson was obtained in that action.”
(Munson
v.
Linnick, supra,
