delivered the opinion of the court.
This is an appeal from the judgment of the district court of Yellowstone county, finding the appellants guilty of a violation of Ordinance No. 223 of the city of Billings, and imposing a fine upon each of them.
The action was begun in the police court upon a complaint, which is as follows: ‘ ‘ That on or about the twelfth day of April, A. D. 1906, within the corporate limits of the city of Billings, in the county of Yellowstone, state of Montana, the defendants committed the crime of unlawfully maintaining, conducting, and operating a livery-stable in that the said J. F. Cook and B. M. Cox, then and there being, did, then and there, without first obtaining a permit from the city council of said city, maintain, conduct and operate a livery-stable on lots numbered thirteen (13) and fourteen (14) of block numbered one hundred and five (105) of the original town (now city) of Billings, Montana, according to the official plat thereof now on file and of record in the office of the county clerk and recorder of Yellowstone county, Montana, the majority of the buildings situated on said block, then and there, being residences, contrary to the pro*101visions of the ordinance of the said city of Billings, in such eases made and provided, No. 223, entitled: ‘An ordinance regulating the location of livery-stables within the corporate limits of the city of Billings.’ ”
From a judgment of conviction in the police court the defendants appealed to the district court, where the cause was tried by the court, without a jury, upon an agreed statement of facts, the material portions of which are:
“ (5) That * * * on or about the ‘twentieth day of February, 1906, said defendants did acquire and purchase at a cost of $1,100 lots numbered thirteen and fourteen in block numbered one hundred five of the original town, now city, of Billings, and which is within the corporate limits of said city and within the residence district of said city, the majority of the buildings situate in said block being residences.
“(6) That immediately after acquiring and purchasing said lots said defendants began the construction of a livery-stable 50 feet in width by 130 feet in depth, said lots being in the aggregate 50 feet in width and 140 feet deep; that said defendants constructed a foundation for said livery-stable at a cost of $75.25, and made water and sewer connections therefor at a cost of $195.00, and in addition thereto, in the construction of said livery-stable expended the sum of $20.00 for hardware, $955.00 for lumber and $214.00 for labor prior to the 6th day of March, 1906; and that on the 6th day of March, 1906, said defendants had a total sum of $2,609.25 invested in said lots and in said livery-stable so partially constructed as aforesaid. * * *
“ (8) That said livery-stable, with the exception of the painting thereof was practically finished and completed on the 12th day of April, 1906, at an approximate cost of $3,500, exclusive of the cost of lots, and that when finally completed and painted will cost said defendants about $4,000.
“(9) That on the 6th day of March, 1906, at the request of certain property owners living in the city of Billings, the city council of said city passed Ordinance No. 223, which ordinance *102was on that day approved by the mayor of said city, and is in words and figures following, to-wit:
“ ‘Ordinance No. 223.
“ ‘An Ordinance Begulating the Location of Livery-stables within the Corporate Limits of the City of Billings.
“ ‘Be it ordained, by the city council of the city of Billings:
“ ‘Section 1. Any person or corporation desiring to construct, maintain, conduct or operate a livery-stable, within the corporate limits of the city of Billings, on any block where the majority of the buildings situate thereon are residences, must first obtain a permit from the city council as hereinafter provided.
“ ‘See. 2. Any person or corporation desiring to so construct, maintain, conduct, or operate a livery-stable as aforesaid, must file with the city council a written application in which must be stated the number of lots and block upon which he desires to construct, maintain, conduct or operate a livery-stable, the nature of the structure, the manner in which said livery-stable is to be conducted or operated and a description of all buildings situate on said block and the purpose for which each is used. At the time of filing said application such person or corporation shall also file with the city council the written consent to the granting of such application of a majority of the lot owners of the block on which he desires to construct, maintain, conduct, or operate said livery-stable. * * *
“ ‘Sec. 5. The provisions of this ordinance shall not apply to any livery-stable now being maintained, conducted or operated.
“ ‘Sec. 6. Any person or corporation who shall construct, maintain, conduct, or operate any livery-stable within the corporate limits of the city of Billings in violation of the provisions of this ordinance, shall be deemed guilty of a misdemeanor and upon conviction thereof shall be fined in a sum not less than $10.00 nor more than $300.00, and each day such livery-stable *103is so maintained, conducted, or operated shall be deemed a separate and distinct offense. * * *’
“(14) That said defendants began to conduct, operate, and maintain their livery-stable business in said livery-stable after the passage, approval, and publication of said ordinance and prior to the 12th day of April, 1906.
“(15) In addition to the livery-stable operated and maintained by said defendants there are three other livery-stables in said city, two of which are in residence districts of said city, but which were in operation long before the passage of said ordinance.
“(16) That said livery-stable of defendants on said lots has always been, since its construction, kept in good, orderly, and clean condition, at least equal to any other livery-stable in said city and far superior to some. * * * ’ ’
As the ultimate question to be decided here is whether the conviction of the defendants shall be affirmed or set aside, we only deem it necessary to pass upon the one point which seems to us particularly decisive of that question. That point is squarely presented by the appellants in their brief, as follows: “The ordinance in question is an unlawful discrimination between appellants and other proprietors of livery-stables in the city of Billings. ’ ’
It will be observed that the defendants were not prosecuted for “constructing” a livery-stable, but for maintaining, conducting and operating one. Let us, then, for the purpose of analyzing the question, eliminate the word “construct” from sections 1, 2, and 6 of the ordinance. Section 1 would then require any person desiring to maintain, conduct, or operate a livery-stable within certain residence portions of the city of Billings, to first obtain a permit from the city council, and section 2 would provide that any person desiring to maintain, conduct, and operate a livery-stable, as aforesaid, must first file his written application therefor and the consent in writing of a majority of the *104lot owners of the block in which he desires to maintain, conduct, and operate said stable. Section 6 would read: “Any pers011 * * * who shall * * * maintain, conduct or operate any livery-stable * * * in violation of the provisions of this ordinance shall be deemed guilty of a misdemeanor * * *.” Section 5 provides that the provisions of the ordinance shall not apply to any livery-stable that was being maintained, conducted, or operated at the time of the passage of the ordinance, and the record discloses the fact that there were three livery-stables to which the exception would apply.
It seems that defendants were allowed to practically complete their stable, and were then prosecuted for operating it. The effect of the ordinance is that the first three stables, two of which were in the residence district, could continue to operate, but the defendants could not operate at all. The legislature, by paragraph 42 of section 4800 of the Political Code, as amended by an Act of the Fifth Legislative Assembly, approved March 8, 1897 (Laws, 1897, p. 203), gave to city councils the express authority to regulate the location of livery-stables.
In the case of State v. Cudahy Packing Co., 33 Mont. 179, 82 Pac. 833, this court reviewed the decisions of the supreme court of the United States construing that portion of the fourteenth amendment to the Constitution of the United States, which declares that “no state shall * * * deny to any person within its jurisdiction the equal protection of the laws.” The opinion of Mr. Justice Field in Barbier v. Connolly, 113 U. S. 27, 5 Sup. Ct. 357, 28 L. Ed. 923, is there quoted, in which he says: “Equal protection and security should be given to all under like circumstances in the enjoyment of their personal and civil rights; * * * all persons should be equally entitled * * * to enjoy property; * * * no impediment should be interposed to the pursuits of anyone, except as applied to the same pursuits by others under like circumstances; * * * no greater burdens should be laid upon one than are laid upon others in the same calling and condition.”
*105In the case of Yick Wo v. Hopkins, 118 U. S. 356, 6 Sup. Ct. 1064, 30 L. Ed. 220, also there cited by this court, it was said that “the equal protection of the laws is a pledge of the protection of equal laws. ’ ’
“Not only must the law as enacted furnish equal protection to all, but also, the legislature, ■ in enacting any law, must so adjust its provisions that it will operate equally upon the individuals constituting the class of citizens whose conduct it is intended to control.” (State v. Cudahy Packing Co., supra.)
The case of Mayor etc. of Hudson v. Thorne, 7 Paige (N. Y.), 261, was an action in equity to restrain the erection of a hay press building on a certain city lot. The city council had passed an ordinance by which, among other things, it was ordered that no person should erect or construct, or cause to be erected or constructed, any wooden or frame barn, stable, or hay press, within certain specified limits of the city of Hudson, of more than thirty feet in width and thirty feet in depth, without the permission of the common council. The chancellor said: “ It appears there were such buildings already in existence, not only within other compact parts of the city, but also within the prohibited limits, the occupation of which, for storing and pressing hay, the common council did not intend to restrain. * * * If the manufacture of pressed hay within the compact parts of the city is dangerous in causing or promoting fires, the common council have the power * * * to prevent the carrying on of such manufacture, but, as all by-laws must be reasonable, the common council cannot make a by-law which shall permit one person to carry on the dangerous business, and prohibit another, who has an equal right, from pursuing the same business. Neither have they the right to permit the dangerous manufacture to be carried on in buildings already erected, and to prohibit these defendants, whose building was destroyed by an incendiary, from rebuilding the same for the purpose of carrying on a manufacture which is permitted to others.” (See, also, Cooley’s Constitutional Limitations, p. 282.)
*106“As it would be unreasonable and unjust to make, under the same circumstances, an act done by one person penal, and if done by another not so, ordinances which have this effect cannot be sustained. Special and unwarranted discrimination, or unjust or oppressive interference in particular cases, is not to be allowed. The powers vested in municipal corporations should, as far as practicable, be exercised by ordinances general in their nature and impartial in their operation.” (1 Dillon on Municipal Corporations, 4th ed., sec. 322.)
In the case of Tugman v. City of Chicago, 78 Ill. 405, the court said: “It will be observed that the regulation, to enforce which this suit was instituted, prohibits the use and operating of slaughter-houses which should be erected after the first day of January, 1872, while those that were erected prior to that time are left perfectly free to be operated as the owners thereof may desire. If the health or comfort of the city required the prohibition of new slaughter-houses within a designated part of the city, the same reason would surely demand that old ones should be discontinued. If one of the citizens of Chicago is permitted to engage in the business of slaughtering animals in a certain locality, an ordinance which would prevent, under a penalty, another from engaging in the same business, would not only be unreasonable, and, for that reason, void, but its direct tendency would be to create a monopoly, which the law will not permit. The fact that certain persons were engaged in the business within the district designated in the ordinance at the time of its adoption, gave them no right to monopolize the business, nor would such fact authorize the board of health to provide that such persons might continue the avocation, while others should be deprived of a like privilege who should engage in the business at a later period. If the board of health had any power to adopt an ordinance on the subject, the ordinance, to be valid, should not discriminate in favor of any citizen. If it prohibited one from carrying on the business, that prohibition should extend to all, regardless of the time the business may have been *107commenced. A regulation of this character, to be binding upon the citizen, must not only be general, but it should be uniform in its operation.” (See, also, City of Chicago v. Rumpff, 45 Ill. 90, 92 Am. Dec. 196.)
The case of Town of Crowley v. West, 52 La. Ann. 526, 78 Am. St. Rep. 355, 27 South. 53, 47 L. R. A. 652, was a case verisimilar to this one. The defendant was fined for violating an ordinance of the town of Crowley which prohibited the establishment of livery-stables, except within certain limits. The ordinance was as follows: “Section 1: That hereafter it shall be unlawful to establish, maintain, locate or operate a livery, feed, sale, and boarding-stable within any portion of the corporate limits of the town of Crowley, except as hereinafter provided.” “Section 3: That the provisions of this ordinance shall not be applied to livery, sale, boarding, and feed stables, already in existence and under operation.” The court said: “We have, then, a case in which it appears that a person, engaged in a business which is conceded to be lawful, in which four other persons, or firms, are engaged, in the same town, which, so far as the record discloses, is conducted properly and inoffensively, is nevertheless, by the operation of a municipal ordinance, arrested and fined, because he has failed to establish his said business in a part of the town remote from the business center, rather than at the place which he considers most advantageous, and it further appears that the other four persons or firms engaged in the same business are not to be affected by the ordinance, but are to be permitted to conduct their business where they please, and that it naturally pleases them to remain in the central part of the town, from which the defendant is to be permanently excluded. The proposition that the defendant can be thus discriminated against, and that his four competitors in business can be thus secured the monopoly, in perpetuity, of the livery-stable business in Crowley, cannot be seriously entertained.”
We conclude, therefore, that, both upon reason and the decided eases, the ordinance we have had under consideration was *108inoperative and void as to these defendants. It is therefore ordered that the judgment of the district court be reversed, and the cause is remanded, with directions to that court to dismiss the action and enter judgment for the defendants in accordance with the stipulation in the agreed statement of facts.
Reversed and remanded.
Me. Chief Justice Beantly and Me. Justice Holloway, concur.Rehearing denied February 26, 1907.