Sрrings sued First National Bank of Cut . Bank (“Bank”) which had refinanced the purchase of his home. His theories of liability were based on negligenсe and bad faith, under the tort law of Montana. The district court granted summary judgment to the Bank on November 14, 1986. Springs later moved for a nеw trial. Treating this motion as one to amend its previous judgment, the district court denied the motion on January 26, 1987. Springs appeals from thе judgment and from the post-judgment order as well.
*1295 I.
FACTUAL BACKGROUND
A. Previous Action
On July 1, 1981, Springs entered into a trust indenture with the Bank for the purchase of a home in Cut Bank, Montana. In 1984, the Bank refinanced the home, and a second trust indenture was entered into between Springs and the Bank. Springs stopped making рayments on the home and on May 24, 1985, the Bank instituted a foreclosure action. Springs did not appear or answer the comрlaint. The state district court subsequently awarded a default judgment in favor of the Bank and ordered foreclosure.
The Bank was the оnly bidder at a sheriffs sale and purchased the property for the full amount of its first lien, including costs. Thereafter, on September 11, 1985, the Bank took a deficiency judgment against Springs.
Some five months later, on February 13, 1986, Springs appeared and moved to set aside the default judgment. The state district court denied the motion. This was appealed to the Montana Supreme Court, which affirmed the decision not to set aside the default on the basis that Springs had not shown a manifest abuse of discretion by the district court.
First National Bank of Cut Bank v. Springs,
B. Present Action
On July 2, 1986, Springs instituted the present tort action against the Bank in the United States District Court for the District of Montana. Jurisdiction was founded on diversity pursuant to 28 U.S.C. § 1332. Sрrings asserted that the Bank was negligent in refinancing his home and allowing an IRS tax lien to take priority over the second trust indenture. Springs also claimed that the Bank had acted in bad faith by purchasing Springs’ home at the sheriffs sale for less than fair market value.
The district court found that Springs’ claims against the Bank were compulsory counterclaims within the meaning of Fed.R. Civ.P. 13(a), and granted the Bank’s motion for summary judgment.
Springs v. First National Bank of Cut Bank,
II.
STANDARD OF REVIEW
We review a district court’s grant of summary judgment
de novo. A & A Concrete v. White Mountain Apache Tribe,
III.
DISCUSSION
A. Negligence Claim
Montana Rule of Civil Procedure 13(a), which defines a compulsory countеrclaim, is identical to Fed.R.Civ.P. 13(a): “A pleading shall state as a [compulsory] counterclaim any claim which at the time of serving the pleading the pleader has against any opposing party, if it arises out *1296 of the transaction or occurrence that is the subject matter of the opposing party’s claim_” (Emphasis added).
The district court correctly found the “transaction” was the financing of Springs’ home. Springs’ theory of liability was based on thе Bank's allegedly negligent conduct prior to instituting the foreclosure action. Springs’ negligence claim, thus, should have been brought аs a compulsory counterclaim in the Bank’s prior foreclosure action.
Springs contends that in order for a counterclaim to be pled, the claim must be in existence and matured at the time the previous lawsuit was commenced. He argues that his negligence claim did not mature until after the earlier foreclosure action was completed, when his right to relief arose.
This argument is without merit. The transaction involved in this case is the refinancing of Springs’ home and his subsequent default on that refinancing agreement. The purported negligent act of the Bank occurred at the time the second trust indenture was executed. Thus, Springs’ claim matured prior to the Bank’s foreclosure action.
See, e.g., Robinson v. First Security Bank of Big Timber,
Furthermore, it has been said that “[a] counterclaim is not barred becausе recovery will depend on the outcome of the main action.”
Interphoto Corp. v. Minolta Corp.,
One court has stated that a counterclaim will not be denied treatment as a counterclaim solely because recovery on it depends on the outcome of the main аction. This approach seems sound when the counterclaim is based on pre-action events and only the right to relief depends on the outcome of the main action.
Wright & Miller, Fed.Prac. and Proc. § 1411, note 3. (Emphasis added).
Accordingly, having failed to rаise the negligence claim during the foreclosure proceeding, Springs is barred from asserting it in this action.
B. Bad Faith Claim
In the course of the Bаnk’s foreclosure action in state district court, a deficiency judgment was entered against Springs. Thereafter, Springs moved to sеt aside that judgment, alleging, inter alia, the Bank was not entitled to a deficiency judgment because the fair market value of Springs’ home exceeded the amount bid by the Bank at the sheriff’s sale. The state court, in an order dated February 2, 1986, upheld its previous decree approving the sheriff’s sale and granting the Bank a deficiency judgment.
Based on the foregoing, the district court concluded that Springs was collaterally es-topped from maintaining his bad faith claim in connection with the sheriff’s sale of his home. While we disagree with the terminology used by the district court, we affirm its decision on the related doctrine of res judicata.
The doctrine of res judicatа bars “all grounds for recovery which could have been asserted,
whether they were or not,
in a prior suit between the same parties ... on the same сause of action.”
Costantini v. Trans World Airlines,
Springs was given the opportunity to raise his bad faith claim during the motion to set aside judgment. His failure to take full advantage of that opportunity precludes him from raising that claim now. Moreover, any wrongdoing alleged to have occurred at the sheriff's sale was evidently insufficient to convince the state court to set aside the deficiency judgment, and this *1297 court does not sit to review and second-guess a state court decision.
The judgment of the district court is AFFIRMED.
