Considering the argument for error urged against the opinion and judgment of the Court of Appeals, we think it well to add something to what has been said by that court.
In Alabama Great Southern Ry. Co. v. Demoville, 167 Ala. 292,52 So. 406, it was held that ordinarily a contract exempting a railroad company from liability for negligently burning property not on the right of way or premises of the company would be void; but, where property is placed on a railway right of way by virtue of a contract in which the owner releases the company from liability on account of fire, the company will not be held liable, even when the fire is set out negligently — this on the authority of 3 Elliott on Railroads, §§ 1235, 1236. The reason for the stated exemption was set out by the Supreme Court of Iowa in Griswold v. Illinois Central Railroad,90 Iowa, 265, 57 N.W. 843, 24 L.R.A. 647, as quoted by the Supreme Court of the United States in Hartford Ins. Co. v. Chicago, etc., Railway, 175 U.S. 91, 20 Sup. Ct. 33,44 L. Ed. 84. It is, in brief, that a contract is not void as against public policy, unless it is injurious to the interests of the public, or contravenes some established interest of society, that buildings can only be placed on a railway right of way by consent of the company and on conditions prescribed by it, that the public has no interest in such contract, and its enforcement works no injury to the public. Such discussions are not here in point.
A different question is presented by the case under consideration. Plaintiff sued for that, to state the complaint in a general way, defendant negligently ran its train against plaintiff's hog, thereby destroying it. At the common law, as it existed in England and in a great number of states in this country, the owner of animals is bound, at his peril, to keep them confined on his own premises. Hence the rule in those jurisdictions — in the absence of statute — that where animals are injured on the right of way the company is not liable, unless the injury results from wantonness or willfulness on the part of the railway employes. 3 Elliott on Railroads (3d Ed.) § 1695. In this state things are differently ordered. In the absence of fence law, the owner may permit his animals to run at large, so that their presence on a railroad track affords no ground of contributory negligence. South North v. Williams, 65 Ala. 74. And the public policy of the state is established by the statute providing that the engineer, or other person having control of the running of a locomotive on any railroad, must, on perceiving any obstruction on the track — including domestic animals, as the court has held — use all means, etc., to stop the train, and the burden is on the company to show that there was no negligence on the part of the company or its agents. Code, §§ 5473, 5476. Any contract contravening the policy thus established is void.
The contract between plaintiff and defendant, set out in plea 2, was in contravention of the policy established by the statute, and is void to the extent it attempts to absolve defendant from liability for the consequences of neglect of its statutory duty in the operation of its trains. Hissong v. Richmond Danville, 91 Ala. 517, 8 So. 776; Alabama Great Southern v. Thomas, 83 Ala. 343, and cases cited in the last place on *Page 689 page 348, 3 So. 802. In respect to the question under consideration it makes no difference that defendant's right of way had been fenced at its expense in part. The parties knew that the fence would diminish the risk of injury to plaintiff's stock, whether by accident or negligence, from the operation of defendant's trains, and they must be held to have contracted upon that consideration. But the contract did not operate to relieve defendant of liability for negligence.
The Court of Appeals appears to have assumed all this as the settled law of the state, as in principle it is, though there has been no case involving its present application; but this law has been denied in the brief for petitioner. Hence our statement and citation of authorities on which it is based.
Writ denied.
ANDERSON, C. J., and GARDNER and MILLER, JJ., concur.