The petitioner was convicted by the mayor of Mobile for a violation of a municipal ordinance entitled an “ordinance to establish and regulate markets.” Failing to pay the fine imposed, he was committed to prison, and thereupon he applied to the judge of the City Court for a writ of habeas corpus on the ground of the invalidity of said ordinance. This application was denied, and he renews it here.
The ordinance in question provides, among other things, for the establishment and regulation of markets at several *19points in the city of Mobile, and prohibits the sale of fresh meats at retail outside of these markets, except by tenants of the market stalls, who are permitted to hawk about the streets, after “8 o’clock A. m. of the day.” This ordinance was in effect on May 1, 1888. The petitioner was then, and had been for a number of years, a. green grocer in Mobile, and as such ivas engaged in the business of selling'fresh meats from his store, having regularly up to May 1, 1888, paid the municipal license tax imposed- on that business; and having offered to continue the payment of this tax. It was admitted that the meats sold by petitioner were sound and wholesome, and that his store was fitted up for this business, and was and had always been clean and neat. Petitioner, on May 1, 1888, between seven and- eight o’clock A. M., sold meat at his store in violation of this ordinance. For this he was convicted, and his conviction was assailed below, and its validity is attacked here, on the ground that said ordinance is void because (1) it is violative of section 1, Art. xiv of the Constitution of the United States; (2) it is violative of sections 1 and 7 of Art. 1 and section 50 of Art. iv of Constitution of Alabama, and (3) that its enactment was not authorized by the charter of the city (or port) of Mobile.
Upon the case, as thus presented, our conclusions are:
1. That it is clearly within the legislative power of the State, so far- as any limitations resulting from the Federal constitution are concerned, to authorize the passage by city councils of ordinances which prohibit the sale of certain commodities, either generally,-or beyond specified limits, or within certain hours of the day. Indeed, the recent adjudications of the Supreme Court of the United States fully recognize the doctrine that the Federal constitution can not be successfully invoked in limitation of the State’s absolute control, either directly or through its political instrumentalities, of its internal police affairs. Both the necessity for police regulation, in a given instance, and the adaptation of a particular regulation to the specific end in view, are matters entirely of State cognizance and final determination. This ordinance, therefore, as applied to the agreed facts, is not violative of any provision of the national constitution. Mugler v. Kansas, 123 U. S. 623. The Oleomargarine Case (not reported).
2. The delegation to a municipal corporation of the power to establish public markets, and to confine the sale of commodities, which, in consideration of public health, require *20police inspection and supervision, to such markets, is clearly within the competency of the General Assembly, under the constitution of Alabama, and it is not conceived that any right secured by the organic law would be impaired by the exercise of this power, even if one of the results of its exercise should be the destruction of an existing and long established business. Such ordinances, however, must not be inconsistent with general laws, they must be reasonable in their provisions, and referable to the performance of some recognized governmental function.
Deferring, for the present, the inquiry whether the charter of Mobile confers power on the city government to prohibit the sale of meats at any store or stall outside of the market buildings, the question arises, has the petitioner shown that he is affected by any other provision in the ordinance ? It is not shown that he has peddled, or desires to peddle about the streets. An ordinance, like a statute, may be valid in some of its provisions, and invalid as to others. — Vines v. State, 67 Ala. 73; Powell v. State, 69 Ala. 10; McCreary v. State, 73 Ala. 480. It is not our purpose to inquire into the validity of the clause which discriminates, in the matter of peddling on the streets, between tenants of stalls and those who are not. If this does vitiate the ordinance to any extent, it is only to the extent of avoiding this exception or giving to all persons the benefit of it, and allowing others as well as lessees of stalls the privilege of peddling about the streets.
' 3. This leaves but one inquiry for our consideration; whether the charter power to “regulate and manage markets” authorized the city council of Mobile to adopt ordinances prohibiting the sale of commodities at stores, stalls and places in the city outside of the market houses. While the power “to regulate” does not authorize prohibition in a general sense, “for the very essence of regulation is the existence of something to be regulated,” yet the weight of authority is to the effect, that this power confers the authority to confine the business referred to to certain hours of the day, to certain localities or buildings in a city, and to the manner of its prosecution within those hours, localities and buildings. — Horr & Bemis Mun. Police Ordinances, 32; Cronin v. People, 82 N. Y. 318; Livery Stables v. State, 16 Mo. App. 131; In re Wilson, 32 Minn. 145.
The ordinance here brought in question is not a prohibition of petitioner’s business. It does not deny his right to *21prosecute it. Its only effect upon, that business is to confine it to the public markets, to limit its prosecution to certain hours of the day, and to prescribe rules for its conduct in conservation of public health.
The conviction of the petitioner was not void, his imprisonment thereunder is legal, and the writ of habeas corpus is denied.