delivered the opinion of the court.
This is a petition for
habeas corpus
by a Chinese person, alleging that he is detained unlawfully by the General Manager of the Pacific Mail Steamship Company on the ground that he is not entitled to enter the United States. The petition alleges that the petitioner is a resident and citizen of the United
*11
States, born in San Francisco of parents domiciled there, but •it discloses that the Commissioner- of Immigration at the port of San Francisco, after a hearing,' denied his right to land, and that the Department of Commerce and Labor affirmed the decision on appeal. .The petitioner thereupon was placed in custody of the steamship company to be sent to China. So far the case is within
United States
v.
Ju Toy,
Of course if the writ is granted the first issue to be tried is the truth of the allegations last mentioned. If the petitioner was not denied a fair opportunity to produce the evidence that he desired, or a fair though summary hearing, the case can proceed no farther. Those facts are the foundation of the jurisdiction of the District Court, if it has any jurisdiction at all. It must not be supposed that the mere allegation of the facts opens the merits of the case, whether those facts are proved or not. And, by way of caution, we may add' that jurisdiction would not be established simply by proving that the Commissioner and the Department of Commerce and *12 Labor did not accept, certain sworn statements as true, even though no contrary or impeaching testimony was adduced. .But, supposing that it- could be shown to the satisfaction of the District Judge that the- petitioner had been allowed, noth- • ing but the semblance of a hearing, as we assume to be alleged, the question is, we repeat, whether habeas corpus may not be used to give the petitioner the hearing that he has been denied.
The statute's purport to exclude aliens only. They create or recognize, for present purposes it does not matter which, the right of citizens outside the jurisdiction to return to the United States. If one alleging himself to be a citizen is not allowed a chance to establish his right in the mode provided by those statutes, although that mode is intended to be exclusive, the statutes cannot be taken to require him to be turned back without, more. The decision .of the Department is final, but that is on the presupposition that the decision was after a hearing in good faith, however summary in form. As between the substantive right of citizens .to enter and of persons alleging themselves to be citizens' to have a chance to. prove their allegation on the one side and the conclusiveness of the Commissioner’s fiat on thé other, when one or the other must give way, the latter must yield. In sueh a case something must be done, and it naturally falls to be done by the courts. In order to decide what we must analyze a little.
If we regard the petitioner, as in
Ju Toy’s case
it was said that he should be regarded, as if he had been stopped and kept at the limit of our jurisdiction,
The petitioner then is imprisoned for deportation without the process of law to which he is given a right. Habeas corpus is the usual remedy for unlawful imprisonment. But on the other hand as yet the petitioner has not established his right to enter the country. He is imprisoned only to prevent his entry and an unconditional release would make the entry complete without the requisite proof. The courts must deal with the matter somehow, and there seems to be no "way so convenient as a trial of the merits before the judge.- If the petitioner proves his citizenship a longer restraint would be ■illegal. If he fails the order of deportation would remain in force.
We recur in closing to the caution stated at the beginning, and add that while it is not likely, it is possible that the officials misinterpreted Rule 6 as restricting the right to obtain witnesses which the petitioner desired to produce, or Rule 7, commented on in
United States
v.
Sing Tuck,
Order reversed:
Writ of habeas corpus to issue.
