Action to set aside a decree of foreclosure of a mortgage upon certain real estate situate in Helena, Montana, in aid of an execution.
The facts, briefly, are: On August 1, 1890, A. R. Gates obtained a loan from the defendant insurance company of $35,000, and secured the same by a mortgage upon lots 15 and 16, block 42, in Helena. On September 10, 1891, Gates and his wife conveyed the property to defendant Gates, Townsend & Co., a corporation, subject to the mortgage. On June 16, 1894, under proceedings instituted for that purpose in the *309District Court of the First Judicial District of Montana, a judgment of foreclosure was entered by default against Gates and Gates, Townsend & Co. On June 19, 1891, an order of sale was issued in pursuance of said decree, and placed in the hands of the sheriff of Lewis and Clarke county, who, on J uly 12, 1891, sold the property to the insurance company, giving to it a certificate of sale. On January 17, 1895, the said sheriff also executed and delivered a deed to the said company, the time for redemption having expired. This deed was filed for record on February 2, 1895, in the office of the clerk of Lewis and Clarke county. On January 30, 1895, defendant Gates, Townsend & Co. executed and delivered to the insurance company its deed, whereby it conveyed to the said company any interest it had in the property described in the said mortgage, by virtue of the deed to it by A. R. Gates and wife. On January 21, 1895, in a cause pending in the District Court of the First Judicial District of Montana, wherein John R. Miller, the plaintiff herein, was plaintiff, and A. R. Gates and Gates, Townsend & Co. were defendants, in which a judgment was sought by the plaintiff against the defendants upon a certain promissory note executed by them to the plaintiff, an attachment was duly and regularly issued, and was, by the sheriff of Lewis and Clarke county, duly levied upon the same property as that described in the said mortgage by A. R. Gates and wife to the insurance company, so as to attach and hold any interest therein belonging to either of the defendants in said suit. On February 1, 1895, a judgment was duly given and entered in said action in favor of John R. Miller, the plaintiff, and against the defendants Gates and Gates, Townsend & Co. for the sum. of §3,199.11. On February 2, 1895, an execution was issued upon the said judgment, and placed in the hands of the sheriff of Lewis and Clarke county, and levied upon the said property. No sale was made by him because of the appearance upon the records in the clerk’s office of the said mortgage to the insurance company, the certificate of sale, and the sheriff’s deed above mentioned. This judgment is wholly unsatisfied. A. R. Gates and Gates, *310Townsend & Co. were wholly insolvent, and owned no property, except what interest the latter may have had in the property in controversy herein.
The insurance company is a foreign corporation, organized under the laws of the state of New Jersey, and had not, at the time plaintiff’s suit was brought, complied with the laws of Montana relative to foreign corporations doing business within this State, and did not do so thereafter until April 20, 1895. In its complaint in the foreclosure proceedings it alleged that it had so complied with the statutes of Montana.
The loan by the insurance company to A. K.' Gates was made, and the mortgage and note to secure it were delivered, in Montana. Other similar loans were made to other persons in the same way. The deed given by Gates, Townsend & Co. to the insurace company was executed and delivered after January 21, 1895. The decree of foreclosure was obtained by the insurance company after personal service of process upon all the defendants in the foreclosure proceedings.
The court below rendered judgment for defendants. From this judgment, and from an order overruling his motion for a new trial, plaintiff appeals.
Plaintiff contends that the contract of mortgage between Gates and wife and the insurance company was void; that consequently the decree and sheriff’s deed based thereon are void; and that all of them should be set aside, so that the property incumbered thereby may be subjected to the payment of his judgment.
As to the character of the mortgage contract, as affected by the failure of the insurance company to comply with the laws of Montana before doing business within the State, this case is not distinguishable from the case of Mutual Benefit Insurance Co. v. Winne, 20 Mont. 20, 49 Pac. 446. In that case it was held, and properly we think, that the contract was voidable only, instead of void, and that, if the obligee chose to do so, he could plead the statute, and thus, perhaps, avoid the contract. The question as to whether the doctrine of estoppel could be successfully invoked against him was reserved. *311In the foreclosure proceedings between the same corporation and the defendants A. B. Gates and Gates, Townsend & Co., the question was not raised. Judgment was permitted by them, and a sale of the property to the insurance company to satisfy the mortgage. The contract was merged in the decree, and the decree satisfied. This proceeding was as effective to convey the title to the insurance company as if these defendants had passed the title to it by their deed. These defendants might have paid the judgment had they been able and desired to do so; and the plaintiff in this cause, though a creditor, could have made no just complaint, though such payment had left these defendants insolvent. So now, as they have permitted the mortgage to be satisfied, the debt contract being void only at their election at the time the judgment was obtained, the creditors who had no lien upon the property before the title was finally vested have no right to complain. The decree of foreclosure is valid as to all the parties to it and those in privity with them. (Black v. Caldwell, 83 Fed. 880, and authorities cited.)
The fact that the attachment in the suit of plaintiff Miller against defendants Gates and Gates, Townsend & Co. was levied upon the property before the sheriff’s deed was filed for record makes no difference as to the rights of the insurance company. (Vaughn v. Schmalsle, 10 Mont. 186, 25 Pac. 102.)
Nor is there any merit in the contention of plaintiff herein that the allegation in the complaint of the insurance company in the foreclosure proceedings that it had complied with the law of Montana is false, and, therefore, that the decree is void. It was not necessary that this allegation should be made by the company in that suit. It was not necessary that it should be established by proof. Its noncompliance with the law was a matter of defense. (Zion Co-operative Mercantile Association v. Mayo, 22 Mont. 100, 55 Pac. 915.)
Let the judgment be affirmed.
Affirmed.