This case is in this court on appeal. The action is brought for a mandatory injunction to require the defendant to carry out the provisions of an ordinance granting a franchise to the defendant to use the streets of Steubenville to operate its cars, and including in that franchise a requirement on the part of the defendant to carry the local 'mail carriers of the city of Steubenville upon its cars, while on duty within the city limits, free of charge.
This-contract was entered into several years ago by the predecessor of the present company and has been carried out by the original grantor and its successors for a number of years since the granting of the franchise. But, some time ago, the company came to the conclusion that in carrying out the provisions of this franchise it was violating Section 516, General Code of Ohio, which prohibits railroads, and interurban and electric railroads, from carrying certain persons free.
The provision of the statute is that “No railroad company, owning or operating a railroad wholly or partly within this state, shall, directly or indirectly, issue or give a free ticket, free pass, or free transportation for passengers, except to its employees and their families,” and others, specifically named. The only respect in which it is claimed that the mail carriers of the city are not included in this provision is in the exception “to railway mail service employees.” Evidently it does not refer to mail carriers in the city. They are not working on a railway. They have no connection with railway mail service. They only ride upon the cars of the company the same as any other passengers in going *495about their business of delivering mail within the city limits. So we think there is no question but that the carrying of mail carriers is as much prohibited as the carrying of any others not particularly excepted in’the statute.
The only question in this case is, as we view it, whether or not the franchise which was granted to the company and under which it is operating is a contract within the meaning of the Constitution of the United States, which prohibits ány state from passing a law impairing the obligation of a contract, and of Section 28, Article II of the Constitution of Ohio, which embodies the same provision. This contract having been made prior to the passage of Section 516, General Code, does that statute impair the obligation of an existing contract? That is the question which we have to deal with here.
It is insisted in this case that the recent decision by the supreme court of the United States in Louisville & Nashville Rd. Co. v. Mottley, 219 U. S., 467, governs this case.
In the Mottley case the defendant in error Mottley, and his wife, were passengers upon a train of the Louisville & Nashville railroad, which came into collision with another train, and they received some injuries. In the settlement of the matter it was agreed by the railroad company to grant Mr. Mottley and his wife free passage for their natural lives over the Louisville & Nashville railroad and its connections. The company lived up to the contract faithfully for a number of years, until the passage of the United States statute forbidding railroad companies from carrying certain persons upon their *496trains on passes and giving them free transportation.
The supreme court held that this contract could not be enforced, and that it was obnoxious to the provisions of the statute. The court says in paragraph 6 of the syllabus:
ifThe power of Congress to regulate commerce among the States and with foreign nations is complete and unrestricted except by limitations in the Constitution itself, and extends to rendering impossible the enforcement by suit of contracts between carriers and shippers although valid when made.”
That is to say, the contract between the Louisville & Nashville railroad and Mr. Mottley was a valid contract when it was made, but the legislation of the United States with regard to passes upon the railroads rendered the enforcement of that contract absolutely impossible.
This is under the provisions of the Constitution of the United States relating to - interstate commerce. It will be observed that the Constitution of the United States does not prohibit congress from: passing a law impairing the obligations of a contract. Of course it does not follow that congress-can enact a law generally declaring void all contracts.
It does mean that the inhibition against passing laws impairing the obligation of contracts does not rest upon congress, but upon the states. So that where the necessities of the case require that legislation shall render a contract void or shall prohibit its performance or make its performance impossible, as it is held they do in the regulation of inter*497state commerce, then congress has the power to pass such legislation.
But it is a different proposition in legislation enacted by a state. The language of the Constitution, Section 10, Article I, is “No state shall * * * pass any * * * Law impairing the Obligation of Contracts.” The doctrine that the charter of a corporation is a contract was first held in Trustees of Dartmouth College v. Woodward, 4 Wheat., 578; although it was resisted somewhat in this state, in some of the earlier cases applying to certain bank charters, which provided for certain rules of taxation therein. (Debolt, Treasurer, v. Ohio Life Ins. & Trust Co., 1 Ohio St., 563; Mechanics’ & Traders’ Bank of Ohio v. Debolt, 1 Ohio St., 591; Knoup, Treas., v. Piqua Bank of Ohio, 1 Ohio St., 603, and Bank of Toledo v. City of Toledo, 1 Ohio St., 622.) It is now too thoroughly established in the law of this state and of the United States to be open to question. Piqua Branch of State Bank of Ohio v. Knoop, Treas., 16 How., 369; Mechanics’ & Traders’ Bank v. Debolt, Treasurer, 18 How., 380; Sturges v. Crowninshield, 4 Wheat., 122, and Fisher v. City of New Orleans, 218 U. S., 438.
But it is urged that the ordinance of a municipality does not come within the same rule, inasmuch as the ordinance is not the charter of a corporation, but only a grant of power to do certain things within the municipality. The ordinance in question grants to the company certain privileges, and the company as part of the consideration for that grant agrees to carry the city’s mail carriers free. It is not easy to see why such a transaction is not a contract and *498we think the weight of authority clearly establishes the fact that it is.
In City of Columbus v. Columbus Gas Co., 76 Ohio St., 309, where the city passed an ordinance granting certain rights to the gas company, the court says:
“When the gas company accepts the terms of said ordinance according to law, and takes possession of and occupies the streets, ei cetera, under said grant, such accepted ordinance becomes a valid contract between the parties.”
And in Grand Trunk Western Ry. Co. v. Rd. Comm. of Indiana, 221 U. S., 400, it is said:
“A legislative act by an instrumentality of the State exercising delegated authority is of the same force as if made by the legislature and is a law of the State within the meaning of the contract clause of the Constitution.”
Very recently, in City of Cincinnati v. Public Utilities Commission, 98 Ohio St., 320, where an ordinance had been passed by the city of Cincinnati, granting privileges in the city to the gas and electric companies, the supreme court, in the eighth proposition of the syllabus, held:
“A contract, such as above described, which is passed in full compliance with authority expressly conferred, is protected by the provisions of Section 10, Article I of the Federal Constitution, that no state shall pass any law impairing the obligation of contracts.”
We see no distinction between the decided cases and the instant case. The obligation imposed on the company by the provisions of the ordinance in question is a contract obligation which can not be im*499paired by the provisions of Section 516, General Code, and hence the relief prayed for must be granted.
Decree for plaintiff.
Pollock and Farr, JJ., concur.