
142 U.S. 651 (1892)
NISHIMURA EKIU
v.
UNITED STATES.
No. 1393.
Supreme Court of United States.
Argued and submitted December 16, 1891.
Decided January 18, 1892.
APPEAL FROM THE CIRCUIT COURT OF THE UNITED STATES FOR THE NORTHERN DISTRICT OF CALIFORNIA.
*657 Mr. Lyman I. Mowry, for appellant, submitted on his brief.
Mr. Assistant Attorney General Parker for appellees.
*658 MR. JUSTICE GRAY, after stating the case as above, delivered the opinion of the court.
As this case involves the constitutionality of a law of the United States, it is within the appellate jurisdiction of this *659 court, notwithstanding the appeal was taken since the act establishing Circuit Courts of Appeals took effect. Act of March 3, 1891, c. 517, § 5; 26 Stat. 827, 828, 1115.
It is an accepted maxim of international law, that every sovereign nation has the power, as inherent in sovereignty, and essential to self-preservation, to forbid the entrance of foreigners within its dominions, or to admit them only in such cases and upon such conditions as it may see fit to prescribe. Vattel, lib. 2, §§ 94, 100; 1 Phillimore (3d ed.) c. 10, § 220. In the United States this power is vested in the national government, to which the Constitution has committed the entire control of international relations, in peace as well as in war. It belongs to the political department of the government, and may be exercised either through treaties made by the President and Senate, or through statutes enacted by Congress, upon whom the Constitution has conferred power to regulate commerce with foreign nations, including the entrance of ships, the importation of goods and the bringing of persons into the ports of the United States; to establish a uniform rule of naturalization; to declare war, and to provide and maintain armies and navies; and to make all laws which may be necessary and proper for carrying into effect these powers and all other powers vested by the Constitution in the government of the United States or in any department or officer thereof. Constitution, art. 1, sec. 8; Head Money Cases, 112 U.S. 580; Chae Chan Ping v. United States, 130 U.S. 581, 604-609.
The supervision of the admission of aliens into the United States may be entrusted by Congress either to the Department of State, having the general management of foreign relations, or to the Department of the Treasury, charged with the enforcement of the laws regulating foreign commerce; and Congress has often passed acts forbidding the immigration of particular classes of foreigners, and has committed the execution of these acts to the Secretary of the Treasury, to collectors of customs and to inspectors acting under their authority. See, for instance, acts of March 3, 1875, c. 141; 18 Stat. 477; August 3, 1882, c. 376; 22 Stat. 214; February 23, 1887, c. *660 220; 24 Stat. 414; October 19, 1888, c. 1210; 25 Stat. 566; as well as the various acts for the exclusion of the Chinese.
An alien immigrant, prevented from landing by any such officer claiming authority to do so under an act of Congress, and thereby restrained of his liberty, is doubtless entitled to a writ of habeas corpus to ascertain whether the restraint is lawful. Chew Heong v. United States, 112 U.S. 536; United States v. Jung Ah Lung, 124 U.S. 621; Wan Shing v. United States, 140 U.S. 424; Lau Ow Bew, Petitioner, 141 U.S. 583. And Congress may, if it sees fit, as in the statutes in question in United States v. Jung Ah Lung, just cited, authorize the courts to investigate and ascertain the facts on which the right to land depends. But, on the other hand, the final determination of those facts may be entrusted by Congress to executive officers; and in such a case, as in all others, in which a statute gives a discretionary power to an officer, to be exercised by him upon his own opinion of certain facts, he is made the sole and exclusive judge of the existence of those facts, and no other tribunal, unless expressly authorized by law to do so, is at liberty to reëxamine or controvert the sufficiency of the evidence on which he acted. Martin v. Mott, 12 Wheat. 19, 31; Philadelphia & Trenton Railroad v. Stimpson, 14 Pet. 448, 458; Benson v. McMahon, 127 U.S. 457; In re Oteiza, 136 U.S. 330. It is not within the province of the judiciary to order that foreigners who have never been naturalized, nor acquired any domicil or residence within the United States, nor even been admitted into the country pursuant to law, shall be permitted to enter, in opposition to the constitutional and lawful measures of the legislative and executive branches of the national government. As to such persons, the decisions of executive or administrative officers, acting within powers expressly conferred by Congress, are due process of law. Murray v. Hoboken Co., 18 How. 272; Hilton v. Merritt, 110 U.S. 97.
The immigration act of August 3, 1882, c. 376, which was held to be constitutional in the Head Money Cases, above cited, imposed a duty of fifty cents for each alien passenger coming by vessel into any port of the United States, to be *661 paid to the collector of customs, and by him into the Treasury, to constitute an immigrant fund; by § 2, the Secretary of the Treasury was charged with the duty of executing the provisions of the act, and with the supervision of the business of immigration to the United States, and, for these purposes, was empowered to make contracts with any state commission, board or officers, and it was made their duty to go on board vessels and examine the condition of immigrants, "and if on such examination there shall be found among such passengers any convict, lunatic, idiot or any person unable to take care of himself or herself without becoming a public charge, they shall report the same in writing to the collector of such port, and such persons shall not be permitted to land;" and by § 3, the Secretary of the Treasury was authorized to establish rules and regulations, and to issue instructions, to carry out this and other immigration laws of the United States. 22 Stat. 214.
The doings of Thornley, the state commissioner of immigration, in examining and detaining the petitioner, and in reporting to the collector, appear to have been under that act, and would be justified by the second section thereof, unless that section should be taken to have been impliedly repealed by the last paragraph of section 8 of the act of March 3, 1891, c. 551, by which all duties imposed and powers conferred by that section upon state commissions, boards or officers, acting under contract with the Secretary of the Treasury, "shall be performed and exercised, as occasion may arise, by the inspection officers of the United States." 26 Stat. 1085.
But it is unnecessary to express a definite opinion on the authority of Thornley to inspect and detain the petitioner.
Putting her in the mission house, as a more suitable place than the steamship, pending the decision of the question of her right to land, and keeping her there, by agreement between her attorney and the attorney for the United States, until final judgment upon the writ of habeas corpus, left her in the same position, so far as regarded her right to land in the United States, as if she never had been removed from the steamship.
Before the hearing upon the writ of habeas corpus, Hatch *662 was appointed by the Secretary of the Treasury inspector of immigration at the port of San Francisco, and, after making the inspection and examination required by the act of 1891, refused to allow the petitioner to land, and made a report to the collector of customs, stating facts which tended to show, and which the inspector decided did show, that she was a "person likely to become a public charge," and so within one of the classes of aliens "excluded from admission into the United States" by the first section of that act. And Hatch intervened in the proceedings on the writ of habeas corpus, setting up his decision in bar of the writ.
A writ of habeas corpus is not like an action to recover damages for an unlawful arrest or commitment, but its object is to ascertain whether the prisoner can lawfully be detained in custody; and if sufficient ground for his detention by the government is shown, he is not to be discharged for defects in the original arrest or commitment. Ex parte Bollman & Swartwout, 4 Cranch, 75, 114, 125; Coleman v. Tennessee, 97 U.S. 509, 519; United States v. McBratney, 104 U.S. 621, 624; Kelley v. Thomas, 15 Gray, 192; The King v. Marks, 3 East, 157; Shuttleworth's Case, 9 Q.B. 651.
The case must therefore turn on the validity and effect of the action of Hatch as inspector of immigration.
Section 7 of the act of 1891 establishes the office of superintendent of immigration, and enacts that he "shall be an officer in the Treasury Department, under the control and supervision of the Secretary of the Treasury." By § 8 "the proper inspection officers" are required to go on board any vessel bringing alien immigrants and to inspect and examine them, and may for this purpose remove and detain them on shore, without such removal being considered a landing; and "shall have power to administer oaths, and to take and consider testimony touching the right of any such aliens to enter the United States, all of which shall be entered of record;" "all decisions made by the inspection officers or their assistants touching the right of any alien to land, when adverse to such right, shall be final unless appeal be taken to the superintendent of immigration, whose action shall be subject to review by the Secretary *663 of the Treasury;" and the Secretary of the Treasury may prescribe rules for inspection along the borders of Canada, British Columbia and Mexico, "provided that not exceeding one inspector shall be appointed for each customs district."
It was argued that the appointment of Hatch was illegal because it was made by the Secretary of the Treasury, and should have been made by the superintendent of immigration. But the Constitution does not allow Congress to vest the appointment of inferior officers elsewhere than "in the President alone, in the courts of law or in the heads of departments;" the act of 1891 manifestly contemplates and intends that the inspectors of immigration shall be appointed by the Secretary of the Treasury; and appointments of such officers by the superintendent of immigration could be upheld only by presuming them to be made with the concurrence or approval of the Secretary of the Treasury, his official head. Constitution, art. 2, sec. 2; United States v. Hartwell, 6 Wall. 385; Stanton v. Wilkeson, 8 Ben. 357; Price v. Abbott, 17 Fed. Rep. 506.
It was also argued that Hatch's proceedings did not conform to section 8 of the act of 1891, because it did not appear that he took testimony on oath, and because there was no record of any testimony or of his decision. But the statute does not require inspectors to take any testimony at all, and allows them to decide on their own inspection and examination the question of the right of any alien immigrant to land. The provision relied on merely empowers inspectors to administer oaths and to take and consider testimony, and requires only testimony so taken to be entered of record.
The decision of the inspector of immigration being in conformity with the act of 1891, there can be no doubt that it was final and conclusive against the petitioner's right to land in the United States. The words of section 8 are clear to that effect, and were manifestly intended to prevent the question of an alien immigrant's right to land, when once decided adversely by an inspector, acting within the jurisdiction conferred upon him, from being impeached or reviewed, in the courts or otherwise, save only by appeal to the inspector's *664 official superiors, and in accordance with the provisions of the act. Section 13, by which the Circuit and District Courts of the United States are "invested with full and concurrent jurisdiction of all causes, civil and criminal, arising under any of the provisions of this act," evidently refers to causes of judicial cognizance, already provided for, whether civil actions in the nature of debt for penalties under sections 3 and 4, or indictments for misdemeanors under sections 6, 8 and 10. Its intention was to vest concurrent jurisdiction of such causes in the Circuit and District Courts; and it is impossible to construe it as giving the courts jurisdiction to determine matters which the act has expressly committed to the final determination of executive officers.
The result is, that the act of 1891 is constitutional and valid; the inspector of immigration was duly appointed; his decision against the petitioner's right to land in the United States was within the authority conferred upon him by that act; no appeal having been taken to the superintendent of immigration, that decision was final and conclusive; the petitioner is not unlawfully restrained of her liberty; and the
Order of the Circuit Court is affirmed.
MR. JUSTICE BREWER dissented.
