The defendant’s railroad crossed the Rensselaer and Columbia turnpike in the town of East Greenbush, in Rensselaer county, and in 1874, the Legislature, by chapter 647 of the laws of that year, enacted that the defendant should, within one year, construct a bridge at the point of intersection of the railroad and turnpike, so®as to carry the turnpike over the railroad, in the manner particularly specified in the act. The railroad omitted to construct the bridge, and this order was made directing a peremptory mandamus to issue commanding it to do so.
Railroad corporations hold their property and exercise their functions for the public benefit, and they are therefore subject to legislative control. The Legislature which has created them, may regulate the mode in which they shall transact their business, the price which they shall charge for the transportation of freight and passengers, the speed at which they may run their trains, and the way in which they may cross or run upon highways and turnpikes used for public travel. It may make all such regulations as are appropriate to protect the lives of persons carried upon rail*571roads, or passing upon highways crossed by railroads. All this is within the domain of legislative power, although the power to alter and amend the charters of such corporations has not been reserved.
This whole subject of the legislative power over railroads, and even private persons holding and using then’ property for public purposes, has been so fully discussed recently in the Supreme Court of the United States, in the Granger cases and the Chicago Elevator case, as to make further discussion unnecessary here. Such legislation violates no contract, takes away no property, and interferes with no vested right. But the defendant was incorporated under chapter 917 of the laws of 1869 by the consolidation of other railroad companies, and hence it took its charter under the Constitution, and the laws subject to the right of the Legislature to alter or amend it. (1 R. S., 600; § 8, Const., art. 8, § 1; Laws of 1850, chap. 140, § 48.)
Under this reserved power, the Legislature may impose upon railroad corporations such additional restrictions and burdens as the public good requires. It may not confiscate property, but it cannot be doubted that it can do all that is required by the act of 1874. (Albany Northern Railroad Company v. Brownell, 24 N. Y., 345, 351.)
The order must be affirmed, with costs.
All concur.
Order affirmed.