delivered the opinion of the court.
Error to the judgment of the Superior Court of the city and county of San Francisco, State of California, discharging a writ of habeas corpus.
*503 Plaintiff in error filed a petition in said court, alleging that. he was a subject of the Emperor of China, and was restrained of his liberty by defendant in error, who was the chief of police of the city and county of San Francisco, under a judgment of imprisonment rendered in the police court of said city for the violation of one of its ordinances. The ordinance is as follows:
“Prohibiting the exposure of gambling tables or implements • in a room barred or barricaded or protected in any manner to make it' difficult of access or ingress to police officers, when three or more persons are present; or the visiting of a room barred and barricaded or protected in any manner to make it difficult of access or ingress to-police, in which gambling tables or implements are exhibited, or exposed, when three or more persons are present.
“Be it ordained by the people of the city and.county of San Francisco as follows:
“Sec. 1. It shall be unlawful for, any> person within the limits of the city and county of San Francisco to, exhibit or expose to view in any barred or barricaded house or room, or in any place built or protected in a manner to make it difficult of access or ingress to police officers when three or. more persons are present, any cards, dice, dominoes, fan-tan table or layout, or any part of such layout, or any gambling implements whatsoever.
“Sec. 2. It shall be unlawful for any person within the limits of the city and county of San Francisco to visit or resort to any such barred or barricaded house or room or other place builf or protected in a manner to make it difficult of access or ingress to police officers', where any cards, dice, dominoes, fantan table or layout, or. any part of such layout, or any gambling implements whatsoever are exhibited or exposed to view when three or more persons are present.
“Sec. 3. Every person who shall violate any of the provisions of this ordinance shall be deemed guilty of misdemeanor, *504 and upon conviction thereof shall be punished by á tine no to exceed five hundred ($500.00) dollars, or by imprisonmenin the county .jail for not more than six (6) months, or by botl such fine and imprisonment.
“Sec. 4. This.ordinance shall take effect and be in force on and after its passage.”
The complaint in the police court charges a violation of the ordinance by the plaintiff in error. The petition for a writ of habeas corpus alleges that the ordinance violates section one of the Fourteenth Amendment of the Constitution of the United States, in that it deprives, plaintiff in error of the,equal protection of the laws, because it is enforced solely arid exclusively against persons of the Chinese race, and in that it “unjustly and arbitrarily discriminates in favor of certain visitors and also in favor of certain persons resorting to the house, room or place referred to in said ordinance, as well as in favor of such persons and visitors as resort to or visit such house of room or place when not barred or barricaded or protected in a manner to make .the same difficult of access or ingress to police officers.” .These objections, it is alleged, were made by him in the police court and. overruled.
The petition also alleges that plaintiff in error is, by the ordinance, deprived of his liberty without due process of law, in that he is prohibited thereby from visiting, -innocently and for a lawful purpose, the house or room or place mentioned in said, ordinance.
It is also alleged that the ordinance is in contravention of the treaty between the United States and China.
Upon filing the petition a writ of habeas corpus was issued, returnable before the court on the twenty-second of March, 1904, and petitioner admitted to bail in the sum of $10.
The following is the order of the court dismissing the writ and remanding the petitioner to custody:
“This matter came on regularly for hearing this 28th day of March A. D. 1904, the petitioner being represented by his counsel and the people being represented by the district attor *505 ney; whereupon it was stipulated and agreed in open court by counsel for the people and by counsel for the petitioner that the facts are as set forth in the petition on file herein for the writ of habeas carpus. The cause was then argued by counsel on the points stated in the said petition and was thereupon submitted to the court for its decision and judgment; and the court being fully advised in the matter does now upon the authority of Matter of Ah Cheung (136 California, 678), dismiss the writ of habeas carpus heretofore issued herein and remand the petitioner to the custody of the chief of police of the city and county of San Francisco. Ordered accordingly. The petitioner reserved an exception to the’judgment.”
Plaintiff in error’s petition presents the question of the constitutionality of the ordinance under which he was convicted. Section one makes it unlawful for any person to exhibit any gambling implements whatsoever in any “barred or barricaded house or room or other place built or protected in a manner to make it difficult, of access or ingress to police officers, where any cards, dice, dominoes, fan-tan table or layout, or any part of such layout, or any gambling implements whatsoever, are exhibited or exposed'to view when three or more persons are present.”
Section two makes it unlawful to visit or resort - to such barricaded house or room.
" The ordinance received consideration in the Matter of Ah Cheung by the Supreme Court of the State of California. 136 California, 678. It was decided that it refers “only to places which are specially barred and barricaded against intrusion by officers of the law, so that illegal gambling may be protected from discovery. Rightly construed, the words ‘barred and barricaded’ do not include an ordinary private residence or room, where doors are sometimes locked or bolted in the ordinary method. Neither should it be construed to mean an attempted prevention of ordinary innocent games played with cards, dice or dominoes.”
The suppression of gambling is concededly within the police
*506
powers of a State, and legislation prohibiting it, or acts which may tend to or facilitate it, will not be.interfered with by the court unless such legislation be a "clear, unmistakable infringement of rights secured by the fundamental law.”
Booth
v.
Illinois,
It is contended that the ordinance makes criminal " the mere act of innocently visiting such a house or room where the visitor had no knowledge and nothing whatever to do with, the barring or barricading of the premises or the prescribed articles.” It is hence contended by plaintiff in error that "he is deprived of his liberty without due process of law, in that he is prohibited thereby from visiting, innocently and for a lawful purpose, the house or room or place mentioned in said ordinance.” Granting, for argument’s sake, that oúe might visit innocently a barred or barricaded house or room where gambling implements are exhibited or exposed to view, and, if as plaintiff in- error alleges in his petition, that he was convicted, notwithstanding he established that he had innocently visited the house mentioned in the charge against him, we are-not at liberty to declare the ordinance unconstitutional. Besides, his remedy for that ruling was not by habeas corpus.. It was by appeal to the Superior Court, which the Penal Code of the State gave him. We may observe he could have raised on such appeal the questions he now raises and have them reviewed by this court.
Plaintiff in error avers "That said ordinance and the provisions thereof are enforced and executed by the said municipality of San Francisco, and said State of California, solely and exclusively against persons of the. Chinese race, and not otherwise.” The contention is that Chinese persons are thereby denied the equal protection of the law in violation of the Fourteenth Amendment of the Constitution of the United States.
Yick Wo
v.
Hopkins,
We think, therefore, the judgment of the Superior Court should be and it is hereby
Affirmed.
