after stating the case, delivered the opinion of the court.
At the trial, and in the Supreme Court of the State, it was contended by the defendant, and the contention is renewed here, that the law of Kansas of 1874 is in conflict with the Fourteenth Amendment of the Constitution of the United States, in that it deprives the company of its property without due process of law, and denies to it the equal protection of the laws.
In support of the first position the company calls the attention of the court to the rule of law exempting from liability an employer for injuries to employés caused by the negligence or incompetency of a fellow-servant, Avhich prevailed in Kansas and in several other States previous to the act of 1874, unless he had employed such negligent or incompetent servant without reasonable inquiry, as to his qualifications, or had retained him after knowledge of his negligence or incompe*208teucy. The rule of law is conceded where the person injured, and the one by whose negligence or incompetency the injury is caused, are fellow-servants in the same common employment, and acting under the same immediate direction. Chicago and Milwaukee Railway v. Ross, 112 U. S. 377, 389. Assuming that this rule would apply to the case presented but for the law of Kansas of 1874, the contention of the company, as we understand it, is that that law imposes upon railroad companies a liability not previously existing, in the enforcement of which their property may be taken; and thus authorizes, in such cases, the taking of property without due process of law, in violation of the 14th Amendment. The plain answer to this contention is, that the liability imposed by the law of 1874 arises only for injuries subsequently committed ; it has no application to past injuries, and it cannot be successfully contended that the State may not prescribe the liabilities under which corporations created by its laws shall conduct their business in the future, where no limitation is placed upon its power in this respect by their charters. Legislation to this effect is found in the statute books of every State. The hardship or injustice of the law of Kansas of 1874, if there be any, must be relieved by legislative enactment. The only question for our examination, as the law of 1874 is presented to us in this case, is whether it is in conflict with clauses of the Fourteenth Amendment. The supposed hardship and injustice consist in imputing liability to the company, where no personal wrong or negligence is chargeable to it or to its directors. But the same hardship and injustice, if there be any, exist when the company, without any wrong or negligence on its part, is charged for injuries to passengers. "Whatever care and precaution may be taken in conducting its business or in.selecting its servants, if injury happen to the passengers from the negligence or incompetency of the servants, responsibility therefor at once attaches to it. The utmost care on its part will not relieve it from liability, if the passenger injured be himself free from contributory negligence. The law of 1874 extends this doctrine and fixes a like liability upon railroad companies, where injuries are sub*209sequently suffered by employes, though it may be by the negligence or incompetency of a fellow-servant in the same general employment and acting under the same immediate direction. That its passage was within the competency of the legislature we have no doubt.
The objection that the law of 18T4 deprives the railroad companies of the equal protection of the laws is even less tenable than the one considered. It seems to rest upon the theory that legislatipn which is special in its character is necessarily within the constitutional inhibition; but nothing can be further from the fact. The greater part of all legislation is special, either in the objects sought to be attained by it, or in the extent of its application. Laws for the improvement of municipalities, the opening and widening of particular streets, the introduction of water and gas, and other arrangements for the safety and convenience of their inhabitants, and laws for the irrigation and drainage of particular lands, for the construction of levees and the bridging of navigable rivers, are instances of this kind. Such legislation does not infringe upon the clause of the Fourteenth Amendment requiring equal protection of the laws, because it is special in its character; if in conflict at all with that clause, it must be on. other grounds. And when legislation applies to particular bodies or associations, imposing upon them additional liabilities, it is not open to the objection that it denies to them the equal protection of the laws, if all persons brought under its influence are treated alike under the same conditions. A law giving to mechanics a lien on buildings constructed or repaired by them, for the amount of their work, and a law requiring railroad corporations to erect and maintain fences along their roads, separating them from land of adjoining proprietors so as to keep cattle off their tracks, are instances of this kind. Such legislation is not obnoxious to the last clause of the Fourteenth Amendment, if all persons subject to it are treated alike under similar circumstances and conditions in respect both of the privileges conferred and the liabilities imposed. It is conceded that corporations are persons within the meaning of the amendment. Santa Clara County v. Southern Pacific Rail*210road Company, 118 U. S. 394; Pembina Consolidated Silver Mining and Milling Co. v. Pennsylvania, 125 U. S. 187. But the hazardous character of the business of operating a railway would seem to call for special legislation with respect to railroad corporations, having for-its object the protection of their employes as well as the safety of the public. The business of other corporations is not subject to similar dangers to their employes, and no objections, therefore, can be made to the legislation on the ground of its making an unjust discrimina^ tion. It meets a particular necessity, and all railroad corporations are, without distinction, made subject to the same liabilities. As said by the court below, it is simply a question of legislative discretion whether the same liabilities shall be applied to carriers by canal and stage coaches and to persons and corporations using steam in manufactories. See Missouri Pacific Railway Co. v. Humes, 115 U. S. 512, 523; Barbier v. Connolly, 113 U. S. 27; Soon Hing v. Crowley, 113 U. S. 703.
Judgment affirmed.