delivered the opinion of the court.
From Wiscart v. D'Auchy, 3 Dall. 321, to American Construction Co. v. Jacksonville &c. Railway Co., 148 U. S. 372, it has been held in an uninterrupted- series of decisions that •this court exercises appellate jurisdiction only in accordance with the acts of Congress upon that subject.
By the Judiciary Act of March 3, 1891, it .is provided that the review by appeal, by writ of error, or otherwise, from existing Circuit Courts shall be had in this court, or in the Circuit Courts of Appeals thereby established, according to the provisions of the act regulating the same. The writ of error in this case was brought under section six of that statute, which provides that “judgments or decrees of the Circuit Courts of Appeals shall be final in all cases in which the jurisdiction is-dependent entirely upon the opposite parties to the suit or controversy being aliens and citizens of the . United States or citizens of different States,” and also that “ in all cases not hereinbefore, in this section, made final there shall be of right an appeal or writ of error or review of the case by the Supreme Court of the United States where the matter in controversy shall exceed one thousand dollars besides costs.”- 26 Stat. 826, 828, §-6, o. 517.
*142If the judgment of the Circuit Court of Appeals for the Eighth Circuit was final, under .the section in question, then this writ of error must be dismissed. And in order to maintain that the decision of the Circuit Court of Appeals was not final, it must appear that the jurisdiction of the Circuit Court was -not dependent entirely upon the opposite parties being citizens of different States.
Under the act of Márch 3, 1875, 18 Stat. 470, c. 137, Circuit Courts of the United States had original cognizance of all suits of a civil nature at'common law or in equity, -among others, where the matter in dispute exceeded, exclusive of costs, the sum or value of five hundred dollars, and arising under the Constitution or laws of the United States, or in which there was a controversy between citizens of different States.
This complaint was’filed December 2, 1885, and alleged the diverse citizenship of the parties-as the ground of jurisdiction. But it is said that the vital question raised in the case was whether the patentee of a lode claim, whose discovery and patent were later than the date of another’s patent, may follow his junior patented lode, the apex thereof being within his side lines, into the other’s patented ground on the dip; •and that' the solution of this question depended upon the construction, and application of section 2322 of the Kevised Statutes, concerning the dip and apex of lodes. Hence that the suit really and substantially involved a controversy only to be determined by reference to the Federal statute, and that jurisdiction existed on that ground and did not depend entirely upon the other.
To maintain this proposition, it is contended that reference may be made to the entire pleadings, the evidence, or the rulings of the'courts below.
This view, however, ignores the settled doctrine that the . inquiry, in cases such • as this, into the jurisdiction of the Circuit 'Court, is limited to the facts appearing on the record in the first instance. This has been often so held in the enforcement of' the inflexible' rule which requires this court in the exercise of its appellate power to deny the jurisdiction *143of courts of the United States in all cases where such jurisdiction does not affirmatively appear in the record on which it is called upon to act.
And we do not think we can do better in elucidation of the rule than quote from the opinion of the court in Metcalf v. Watertown, 128 U. S. 586, 588, where the subject is considered and the authorities cited.
“It has been often decided by this court,” said Mr. Justice Harlan, by whom that opinion was delivered, “that a suit may be said to arise under the Constitution or laws of the United States, within the meaning of that act, [18 Stat. 470, c. 137,] even where the Federal question upon which it depends •is raised, for the first time in the suit, by the answer or plea of the defendant. But these were removal cases, in each of which the grounds of Federal jurisdiction wTere disclosed either in the pleadings, or in the petition and affidavit for removal; in other words, the case, at the time the jurisdiction of the Circuit Court of the United States attached, by removal, clearly presented a question or questions of a Federal nature. Railroad Co. v. Mississippi, 102 U. S. 135, 140; Ames v. Kansas, 111 U. S. 449, 462; Pacific Railroad Removal Cases, 115 U. S. 1, 11; Southern Pacific Railroad Co. v. California, 118 U. S. 109, 112. Besides,' the right of removal under the act of 1875 could not be made to depend upon a preliminary inquiry as to whether the plaintiff had or had not the right to sue in the state court of original jurisdiction from which it was sought to remove the suit. When, however, the original jurisdiction of a Circuit Court of the United States is invoked upon the sole ground that the determination of the suit depends upon some question of a Federal nature, it must appear, at the outset, from the declaration or the bill of the party suing; that the suit is of that character; in other words, it must appear, in that.class of cases, that the suit was one of which the Circuit Court, at the time its jurisdiction is invoked, could properly take cognizance.' If it does not so appear, then the court, upon demurrer or motion, or upon its own. inspection of the pleading, must, dismiss the suit; just as it would remand to the state court a suit which the record, at *144the time of removal, failed to show was within the jurisdiction of the Circuit Court. It cannot retain it in • order to see tvhether the defendant may not raise some question of a Federal nature upon which the right of recovery will finally depend; and if so retained, the want of jurisdiction, at the commencement of the suit, is not cured by an answer or plea which may suggest a question of that kind.”
The jurisdiction of the Circuit Court was invoked, December 2, 1885, by the filing of the complaint, from which it appeared that the suit was one of which cognizance could be properly • taken on the ground of diverse citizenship, but it did not appear 'therefrom that jurisdiction was rested, or could be asserted, on any other ground. The. Federal question now suggested did not emerge until the defendant set up its second defence, and not then unless deducible from the bare averment that it claimed under the. senior discovery and patent, which was admittedin the replication.
The proposition that the right given by section 2322 of the Kevised Statutes to the holder of the apex to follow his vein on its dip outside of the side lines of his claim is merely a right against an adjoining claimant holding under a junior patent or certificate was afterwards advanced in certain instructions requested by defendant and refused.
The jurisdiction had, however, already attached and could not be affected by the subsequent developments. It depended entirely upon diverse citizenship when the suit was commenced, .and 'to that point of time the inquiry must necessarily be referred.
If the plaintiff had invoked it on two distinct grounds, one of them being independent of diverse citizenship, a different question might have been presented.
¥e are of opinion that the'judgment of the Circuit Court of Appeals was final under the sixth section, and that the writ of error cannot be maintained.
Writ of error dismissed.