delivered the opinion of the court.
The plaintiff in error brought this action at law against the defendant in error in the Circuit Court for the District of Montana. Jurisdiction was based solely on the diversity of citizеnship of the parties. The plaintiff was a citizen of Utah and the defendant a citizen of New York. The judge of,the Circuit Court dismissed the action for want of jurisdiction, and whether
*369
that decision was correct is the single question brought directly here by writ of error. The Circuit Court for the District of Montana was without jurisdiction of the action, because neither of the parties to it was a resident of that district, and the statute (25 Stat. 433) requires that where the jurisdiction is founded on the fact that the parties are citizens of different States, suit shall be brought only in the district where one of them resides. But-we have recently held that where diversity of сitizenship exists, as it does here, so that the suit is cognizable in some Circuit Court, the objection that there is not jurisdiction in a particular district may be waived by аppearing and pleading to the merits.
In re Moore,
While the conformity act, Rev. Stat. § 914, provides that the practice, pleadings, forms and modes of proceeding in civil causes, other than those in equity and admiralty, in the Circuit and District Courts of the United States, shall conform, as near as may be, to the practice, pleadings and fоrms, and modes of proceedings existing at 'the time in like causes in courts of record of the State wherein such United States courts are held, neverthеless, in cases like the one under consideration, involving the jurisdiction of the Federal courts, the ultimate determination of such question is for this court alоné. This doctrine finds illustration in the case of
Mexican Central Railway Co.
v.
Pinkney,
In the case at bar, defendant filed its demurrer to the com *370 plaint alleging: 1st, that the court has no jurisdiction of the subject of the action; 2d, that the court has no jurisdiction of the pеrson of the defendant; 3d, that said complaint does not state facts sufficient to constitute a cause of action against this defendant; 4th, that the complaint is uncertain; 5th, that the complaint is unintelligible.
The learned judge on the seventh of November, 1903, overruled the demurrer as to the first, seconql and third grounds .of the complaint, but sustained it upon the fourth and fifth grounds, in that the complaint was uncertain and unintelligible. Thereupon the plaintiff filed an amended cоmplaint; the defendant repeated the same grounds of demurrer, and the same was submitted to the court on the first and second grounds, those covering jurisdiсtion over the subject-matter of the action and jurisdiction over the person of the defendant, respectively, and on the twenty-sixth of October, 1906, Judgе Hunt, holding the Circuit Court for the District of Montana, in a well considered opinion held that inasmuch as the demurrer was interposed upon jurisdictional and other grounds, and was not confined to jurisdiction over the person alone, but reached the merits of the action, the case being one within the generаl jurisdiction of the court, although instituted' in the wrong district, the defendant had waived its personal privilege not to be sued in the Montana district and had submitted to the jurisdiction. In support of his view Judge Hunt cited
Interior Construction & Improvement Company
v.
Gibney,
“As neither party to this action was, at the time of the institution thereof, a citizen or resident of the Stаte of Montana, *371 upon the authority of Ex parte Abram C. Wisner, decided by the Supreme Court December 10, 1906, and followed by the Court of Appeals of this circuit in Yellow Aster Mining Company and Southern Pacific Company v. R. M. Burch, decided February 11, 1907, I must reverse the ruling heretofore made by me upon the demurrer, and dismiss the case for lack of jurisdiction.
“So ordered.”
Let us see, then, whether the defendant had submitted to the jurisdiction of thе Circuit Court. It had appeared and filed its demurrer to the original complaint, invoking the judgment of the court, as hereinbefore stated, and the court had ruled against it on the question of jurisdiction, and upon the merits of the cause of action, only sustaining the demurrer as to the form of the allegations in the сomplaint. It invoked and obtained a ruling on the merits so far as the legal sufficiency of the cause of action is concerned. Then the amendеd complaint was filed. The court sustained its jurisdiction upon hearing the demurrer, which ruling is subsequently changed on the authority of Ex parte Wisner, which is now overruled in In re Moore, in so far as it was said in the Wisner case that a waiver could not give jurisdiction over a person sued in the wrong district, where diversity of citizenship existed.
So far from being obliged to raise the objection to the jurisdiction over its pеrson by demurrer, as is contended by defendant in error, it was at liberty to follow the practice pursued in the code States under sections similar to § 1820 of the Montana code, making a special appearance by motion aimed at the jurisdiction of the court over its person, or to quash the service of process undertaken to be made upon it in the district wherein it was not personally liable to suit under the act of Congress. This course wаs open to the defendant in the United States Circuit Court, as is shown by the case of
Shaw
v.
Quincy Mining Co.,
In
St. Louis & San Francisco R. R. Co.
v.
McBride,
Of the effect of this demurrer Mr. Justice Brewer, delivering the opinion of the court, said:
“Its demurrer, as appears, we" based on three grounds: Two referring to the question of jurisdiction and the third that the complaint did not state facts sufficient tо constitute a cause of action. There was, therefore, in the first instance, a general appearance to the merits. If the casе was one of which the court could take jurisdiction, such an appearance waives not only all defects in the service, but all special privileges of the defendant in respect to the particular court in which the action is brought.”
This case presents the same question. We are of opinion that, the defendant had waived objection to jurisdiction over its person, and by filing the demurrer on the grounds stated submitted to the jurisdiction of the Circuit Court.
Judgment reversed.
