208 U.S. 583
28 S.Ct. 341
52 L.Ed. 630
NORTHERN PACIFIC RALLWAY COMPANY, Plff. in Err.,v.STATE OF MINNESOTA EX REL. CITY OF DULUTH.
No. 92,
Argued December 20, 23, 1907.
Decided February 24, 1908.

Mr. Charles W. Bunn for plaintiff in error.
[Argument of Counsel from pages 583-585 intentionally omitted]
Mr. Bert Fesler for defendant in error.
[Argument of Counsel from pages 585-587 intentionally omitted]
Mr. Justice Day delivered the opinion of the court:


1
This case comes here from the supreme court of Minnesota, to review a judgment of that court affirming a judgment in mandamus of the St. Louis county court in that state, which required the Northern Pacific Railway Company, plaintiff in error, to repair a certain viaduct in the city of Duluth, carrying Lake avenue over the railway company's tracks. 98 Minn. 429, 108 N. W. 269. The Northern Pacific Railway Company is the successor in title of the St. Paul & Duluth Railroad Company, which derived its title from the Lake Superior & Mississippi Railroad Company. The Lake Superior & Mississippi Railroad Company, whose rights and obligations have devolved upon the Northern Pacific Railway Company, had the following provisions in its charter:


2
'Sec. 6. The said company may construct the said railroad across any public or private road, highway, stream of water, or water course if the same be necessary: Provided, That the same shall not interfere with navigation; but said company shall return the same to their present state, or in a sufficient manner so as not to impair the usefulness of such road, highway, stream of water, or water course, to the owner or to the public.'


3
'Sec. 17. This act is hereby declared to be a public act, and may be amended by any subsequent legislative assembly in any manner not destroying or impairing the vested rights of said corporation.'


4
The Lake Superior & Mississippi Railroad laid its first track across what is now Lake avenue in 1869. Lake avenue was graded and improved for public traffic in the winter and spring of 1871, and since that time it has been in continuous use as a public street. In the year 1891 the amount of business on Lake avenue and the number of tracks therein had become so great that the constant passage of cars and engines endangered the safety of the public. The city of Duluth thereupon prepared plans and specifications for the construction of the viaduct upon Lake avenue, and made a demand upon the railroad company to construct the same. The railroad company, after considerable negotiation, in which it denied its obligation to build the viaduct, entered into a contract with the city of Duluth, which is set up in its answer in this case as a full defense to the right of the city of Duluth to require the repair of the viaduct at the railroad company's expense. This contract was dated September 2, 1891, and provided that the city should build the bridge or viaduct upon Lake avenue to carry that street over the railroad tracks which had theretofore crossed said avenue at grade. The railroad was to contribute to the expense of the construction in the amount of $50,000, and the city undertook, for the period of fifteen years, to maintain the part of the bridge over the railroad's right of way, and to perpetually maintain the approaches. The city built the bridge at an expense of $23,000, in addition to the $50,000 which was paid by the railroad company.


5
In 1903, the viaduct and its approaches having become dangerous for public use, the city of Duluth acted within the power conferred on it by law to require railroad companies to construct bridges and viaducts at their own expense at public railroad crossings, and, having investigated the subject, approved the plans prepared by the city engineer, and on the 13th of July, 1903, passed the following resolution:


6
'Resolved, That the repairs set forth in said specifications are necessary and proper, and are demanded by the public safety and convenience.


7
'Resolved, further, That said repairs are reasonable and practicable for the repairs of said viaduct and its approaches; and that said repairs as set forth in said specifications are hereby adopted and approved.


8
'Resolved, further, That this council does hereby demand that the Northern Pacific Railway Company immediately proceed to repair said viaduct and approaches in accordance with said specifications.


9
'Resolved, further, That a copy of this resolution be forthwith served upon the Northern Pacific Railway Company in the same manner as service may be made of summons in a civil action by the city clerk.


10
'Resolved, further, That, in the event of the failure or refusal of said company to comply with such demand, that the city attorney be and he is hereby instructed to institute such action or actions as to him may seem proper to compel the said railway company to make such repairs, or such portion thereof as the court may determine it is legally liable to make.'


11
It was in pursuance of this resolution that this action in mandamus was begun and the writ issued, requiring the railroad company to make the repairs in accordance with the plans adopted and approved by the city council.


12
We are met at the threshold with the question of the jurisdiction of this court. It is the contention of the plaintiff in error that, in requiring the railroad company to repair the viaduct at its own expense, the obligation of the contract of September 2, 1891, has been impaired by legislation of the municipal corporation, in violation of the contract clause of the Constitution of the United States. In cases arising under this clause of the Federal Constitution this court determines for itself whether there is a contract valid and binding between the parties, and whether its obligation has been impaired by the legislative action of the State. Stearns v. Minnesota, 179 U. S. 223, 233, 45 L. ed. 162, 170, 21 Sup. Ct. Rep. 73. If the plaintiff in error set up a claim of contract upon substantial grounds and with allegations showing an impairment of its obligation by state or municipal legislation, a case was presented which might be brought to this court in event such legislation was upheld. Chicago, B. & Q. R. Co. v. Nebraska, 170 U. S. 57, 42 L. ed. 948, 18 Sup. Ct. Rep. 513.


13
It is no longer open to question that municipal legislation passed under supposed legislative authority from the state is within the prohibition of the Federal Constitution and void if it impairs the obligation of contracts. Mercantile Trust & D. Co. v. Columbus, 203 U. S. 311-320, 51 L. ed. 198-202, 27 Sup. Ct. Rep. 83, and cases there cited. But it is contended that the action of the city in this case amounts to no more than a denial of the validity and binding force of the contract in question and brings the case within St. Paul Gaslight Co. v. St. Paul, 181 U. S. 142, 45 L. ed. 788, 21 Sup. Ct. Rep. 575, followed in Dawson v. Columbia Ave. Sav. Fund, S. D. Title & T. Co. 197 U. S. 178, 49 L. ed. 713, 25 Sup. Ct. Rep. 420. In the St. Paul Case the city refused to pay certain sums claimed to be due on contract of the company, and ordered the gas posts to be removed from the streets. Such a denial of liability on the part of a municipal corporation was contained in an ordinance to that effect, it was held this was not legislation impairing the obligation of the contract, and it was said in that case that the ordinance 'created no new right or imposed no new duty substantially antagonistic to the obligations, of the contract, but simply expressed the purpose of the city not in the future to pay the interest on the cost of construction of the lamp posts which were ordered to be removed. . . . Wheh the substantial scope of this provision of the ordinance is thus clearly understood it is seen that the contention here advanced of the impairment of the obligations of the contract arising from this provision of the ordinance reduces itself at once to the proposition that, wherever it is asserted, on the one hand, that a municipality is bound by a contract to perform a particular act and the municipality denies that it is liable under the contract to do so, thereby an impairment of the obligations of the contract arises, in violation of the Constitution of the United States. But this amounts only to the contention that every case involving a controversy concerning a municipal contract is one of Federal cognizance, determinable ultimately in this court. Thus, to reduce the proposition to its ultimate conception is to demonstrate its error.'


14
And such was the effect of the ordinance in the subsequent case of Dawson v. Columbia Ave. Sav. Fund, S. D. Title & T. Co. supra.


15
We think the municipal legislation complained of in this case amounts to more than a mere denial of liability or of the binding force of the former contract. The legislation which deprives one of the benefit of a contract, or adds new duties or obligations thereto, necessarily impairs the obligation of the contract, and when the state court gives effect to subsequent state or municipal legislation which has the effect to impair contract rights by depriving the parties of their benefit, and make requirements which the contract did not theretofore impose upon them, a case is presented for the jurisdiction of this court. New Orleans Waterworks Co. v. Louisiana, 185 U. S. 336, 350, 351, 46 L. ed. 936, 943, 944, 22 Sup. Ct. Rep. 691. And this jurisdiction has been frequently exercised in cases of municipal ordinances having this effect upon prior contract rights. Vicksburg Waterworks Co. v. Vicksburg, 185 U. S. 65-81, 46 L. ed. 808-815, 22 Sup. Ct. Rep. 585; Cleveland v. Cleveland City R. Co. 194 U. S. 517, 48 L. ed. 1102, 24 Sup. Ct. Rep. 756. As was said in Dawson v. Columbia Ave. Sav. Fund, S. D. Title & T. Co. supra, it is not always easy to determine on which side of the line a given case may fall. But, recurring to the resolution in this case, we are of the opinion that it is legislative action which impairs the obligation of the contract, if the contract is of binding force, which is a question to be determined upon the merits. For the judgment of mandamus against the railroad company could not have been rendered in this case without the prior legislation by the city ascertaining the necessity for repairs upon the viaduct, the character and extent of the same, and imposing upon the railroad company the duty to enter upon the street and construct the improvement.


16
This municipal action is more than a mere denial of the obligation of the contract; it affirmatively requires that certain improvements shall be made upon the viaduct by the railroad company which the council deemed to be necessary. It required legislative action to determine the nature and character of these improvements. The mandamus issued by the court is but the carrying of the ordinance into effect. If the contract was of binding force and effect it would relieve the railroad company from making such improvements within the right of way for the period of fifteen years, and permanently relieve it of other improvements upon the viaduct. To require that it shall make these improvements within the period named, as this legislation does, is to require the railroad to incur expenses for things which the city had expressly contracted to relieve it from during the period mentioned. Assuming, for jurisdictional purposes, that the company had a valid claim of contract, it was impaired by the legislation of the city in question; we therefore think there is jurisdiction in the case.


17
Passing to the merits, it is the contention of the railroad company that when this contract was made the supreme court of Minnesota had decided that, as to highways which were constructed after the railroad was built, there was no obligation upon the company to construct overhead bridges or crossings, and whatever the rule might be as to requiring a railroad company to construct such overhead bridges in the interest of public safety as to streets in existence when the railroad was built, it could not be required so to do when the highway was constructed after the railway had acquired its right of way and laid its tracks.


18
It is difficult to perceive how a judicial determination that the railroad company could not be charged with the expense of such structures as this viaduct as to streets laid out after the railroad was built could have induced the agreement to pay $50,000 towards the improvement in question in a street first occupied by the railroad company. And the recitals of the contract of September, 1891, are to the effect that the payment of the $50,000 was in lieu of assessments for benefits in excess of damages for the taking of property of the railroad company to be caused by said public improvement, which might be imposed upon the property of the railroad company.


19
But was there such settled judicial construction? In the case of State ex rel. Minneapolis v. St. Paul, M. & M. R. Co. 98 Minn. 380, 108 N. W. 261, a case decided by that court upon the same day it handed down its decision in the case at bar, the subject was elaborately examined and a conclusion reached that the charter of a railroad, similar to the one granted the Lake Superior & Mississippi Railroad Company, above set forth, imposed an obligation upon the railroad company as to highways, roads, and streets, over which the railroad was constructed, to keep the same in good condition and repair, whether laid out after the building of the railroad or before, and that such requirement in the interest of public safety embraced an overhead bridge necessary for the public safety, and that a requirement that it should be built at the expense of the railroad company was an exercise of the police power of the state, and did not amount to taking property without due process of law. In that case the cases relied upon by the learned counsel for the plaintiff in error in this case as establishing a contrary doctrine, prior to the making of the contract, were reviewed. They are: State ex rel. Minneapolis v. St. Paul, M. & M. R. Co. 35 Minn. 131, 59 Am. Rep. 313, 28 N. W. 3, and State ex rel. St. Paul, M. & M. R. Co. v. District Court, 42 Minn. 247, 7 L.R.A. 121, 44 N. W. 7. It was there pointed out, and we think correctly, that while the learned court, in State ex rel. St. Paul, M. & M. R. Co. limited its ruling to cases where railroads had been constructed in streets already laid out, and expressly disclaimed that the doctrine there announced would necessarily apply where a new street had been laid out over the railroad after its construction, the question now made was not involved in the case, and the dicision then made was limited to existing streets only. In the second case above cited (42 Minn. 247), while it was held that planking the tracks at crossings was a part of the construction of the highway, and not a safety device for the protection of the thoroughfare, and therefore not within the proper exercise of the police power, so that the cost thereof could be required from the company, the court did say, in the most emphatic manner, that safety devices might be required at new streets, and that cattle guards and gates were such safety devices, the construction of which would be required at the expense of the company. And the court said:


20
'When the railroad company accepted its charter it received its franchises subject to the authority and power of the state to impose such reasonable regulations concerning the use, in matters affecting the common safety, of its dangerous enginery, and not merely subject to the then-existing regulations as applicable to thenexisting conditions; and whether the obligation now in question had been imposed at this time by direct act of the legislature, or, as is the case, arises from the laying out of a new highway, to which the previously-existing law becomes applicable, can make no difference.


21
'The fallacy involved in the claim of the relator, and, as we think, in some decisions by which its claim is supported, arises from a failure to distinguish between rights of property, which confessedly are protected under the Constitution from being devested or appropriated to other purposes without compensation, and the very different matter concerning the manner in which the owner may use his property so as not to unnecessarily endanger the public. The claim of the relator involves an assumption that when the railroad constructed its line of road, conforming to the requirements of the law as to all then-existing highway crossings, it had a constitutional right, by virtue of its priority, to always afterwards operate its road unembarrassed by being required to observe like precautions with respect to highways that might be thereafter laid out across the railroad, except upon the condition that it should receive compensation, not merely for whatever of its acquired property might be taken for the other use, but also for the expense and burden of conforming its own conduct to the newly-existing conditions,—of conforming to a general police regulation of the state, not before applicable. There was no such exclusive or superior right acquired by priority of charter, or of the construction of this railroad highway. It cannot be supposed that, when its franchises were granted to this relator to construct and operate this railroad, it was contemplated, either by it or by the state, that no more public highways should be laid out which should increase the number of places where the ordinary police regulations would have to be complied with by the railroad company, to its inconvenience and expense. On the contrary, it must have been understood and contemplated, especially in a new state rapidly advancing in population and in the development of its resources, where new towns were springing up, and new avenues for travel and traffic were becoming necessary, that new streets and roads would be and must be laid out, and that many of these would necessarily cross existing railroad lines. We cannot resist the conclusion that, so far as concerns the matter now under consideration, the charter of the relator was taken subject to the right of the state to impose this duty whenever, by reason of the establishing of new highways, it should become necessary; and hence the relator is not entitled to compensation for obedience to this requirement. Lake Shore & M. S. R. Co. v. Cincinnati, S. & C. R. Co. 30 Ohio St. 604; Chicago & A. R. Co. v. Joliet, L. & A. R. Co. 105 Ill. 388, 400, 404, 44 Am. Rep. 799; Hannibal v. Hannibal & St. J. R. Co. 49 Mo. 480; Bridgeport v. New York & N. H. R. Co. 36 Conn. 255, 4 Am. Rep. 63.'


22
As the supreme court of Minnesota points out in the opinion in 98 Minn. 380, above referred to, the state courts are not altogether agreed as to the right to compel railroads, without compensation, to construct and maintain suitable crossings at streets extended over its right of way, after the construction of the railroad. The great weight of state authority is in favor of such right. See cases cited in 98 Minn. 380.


23
There can be no question as to the attitude of this court upon this question, as it has been uniformly held that the right to exercise the police power is a continuing one; that it cannot be contracted away, and that a requirement that a company or individual cannot be contracted away, nor can without compensation is the legitimate exercise of the power, and not in violation of the constitutional inhibition against the impairment of the obligation of contracts. In New York & N. E. R. Co. v. Bristol, 151 U. S. 556, 567, 38 L. ed. 269, 272, 14 Sup. Ct. Rep. 437, 440, the doctrine was thus laid down by Chief Justice Fuller, speaking for the court:


24
'It is likewise thoroughly established in this court that the inhibitions of the Constitution of the United States upon the impairment of the obligation of contracts, or the deprivation of property without due process, or of the equal protection of the laws, by the states, are not violated by the legitimate exercise of legislative power in securing the public safety, health, and morals. The governmental power of self-protection cannot be rights granted, nor the use the exercise of rights granted, nor the use of property, be withdrawn from the implied liability to governmental regulations in particulars essential to the preservation of the community from injury. Boston Beer Co. v. Massachusetts, 97 U. S. 25, 24 L. ed. 989; Northwestern Fertilizing Co. v. Hyde Park, 97 U. S. 659, 24 L. ed. 1036; Barbier v. Connolly, 113 U. S. 27, 28 L. ed. 923, 5 Sup. Ct. Rep. 357; New Orleans Gaslight Co. v. Louisiana Light & H. P. & Mfg. Co. 115 U. S. 650, 29 L. ed. 516, 6 Sup. Ct. Rep. 252; Mugler v. Kansas, 123 U. S. 623, 31 L. ed. 205, 8 Sup. Ct. Rep. 273; Budd v. New York, 143 U. S. 517, 36 L. ed. 247, 4 Inters. Com. Rep. 45, 12 Sup. Ct. Rep. 468.'


25
The principle was recognized and enforced in Chicago, B. Q. R. Co. v. Chicago, 166 U. S. 226, 41 L. ed. 979, 17 Sup. Ct. Rep. 581, where it was held that the expenses incurred by the railroad company in erecting gates, planking at crossings, etc., and the maintenance thereof, in order that the road might be safely operated, must be deemed to have been taken into account when the company accepted its franchise from the state, and the expenses incurred by the railroad company, though upon new streets, might be required as essential to the public safety. In Detroit, Ft. W. & B. I. R. Co. v. Osborn, 189 U. S. 383, 47 L. ed. 860, 23 Sup. Ct. Rep. 540, it was held that the state of Michigan might compel a street railroad to install safety appliances at an expense to be divided with a steam railroad company occupying the same street, notwithstanding the steam railroad was the junior occupier of the street. The subject was further under consideration in New Orleans Gaslight Co. v. Drainage Commission, 197 U. S. 453, 49 L. ed. 831, 25 Sup. Ct. Rep. 471, where it was held that, although the gas company had permission from the city to lay its pipes under the streets, it might be required to remove the same at its own expense, in the exercise of the police power in the interest of the public, in order to make way for a system of drainage which was required, in the interest of the public health, without compensation to the gas company; and that uncompensated obedience to regulations for public safety under the police power of the state was not a taking of property without due process of law.


26
The same principles were recognized and the previous cases cited in Chicago, B. & Q. R. Co. v. Illinois, 200 U. S. 561, 50 L. ed. 596, 26 Sup. Ct. Rep. 341, and again in Union Bridge Co. v. United States, 204 U. S. 364, 51 L. ed. 523, 27 Sup. Ct. Rep. 367. The result of these cases is to establish the doctrine of this court to be that the exercise of the police power in the interest of public health and safety is to be maintained unhampered by contracts in private interests, and that uncompensated obedience to laws passed in its exercise is not violative of property rights protected by the Federal Constitution.


27
In this case the supreme court of Minnesota has held that the charter of the company, as well as the common law, required the railroad, as to existing and future streets, to maintain them in safety, and to hold its charter rights subject to the exercise of the legislative power in this behalf, and that any contract which undertook to limit the exercise of this right was without consideration, against public policy, and void. This doctrine is entirely consistent with the principles decided in the cases referred to in this court. But it is alleged that at the time this contract was made with the railroad company it was at least doubtful as to what the rights of the parties were, and that the contract was a legitimate compromise between the parties, which ought to be carried out. But the exercise of the police power cannot be limited by contract for reasons of public policy; nor can it be destroyed by compromise; and it is immaterial upon what consideration the contracts rest, as it is beyond the authority of the state or the municipality to abrogate this power so necessary to the public safety. Chicago, B. & Q. R. Co. v. Nebraska, 170 U. S. 57, 42 L. ed. 948, 18 Sup. Ct. Rep. 513.


28
We find no error in the judgment of the Supreme Court of Minnesota, holding the contract to be void and beyond the power of the city to make, and it will, therefore, be affirmed.

