The Main Line of Public Works was a package of legislation passed by the Commonwealth of Pennsylvania in 1826 to establish a means of transporting freight between Philadelphia and Pittsburgh. It funded the construction of various long-proposed canal and road projects, mostly in southern Pennsylvania, that became a canal system and later added railroads. Built between 1826 and 1834, it established the Pennsylvania Canal System and the Allegheny Portage Railroad.
Later amendments substituted a new technology, railroads, in place of the planned but costly 82-mile (132 km) canal connecting the Delaware River in Philadelphia to the Susquehanna River. The route from Philadelphia to Pittsburgh remained a patchwork of canals and railroads until the Pennsylvania Railroad was built in the 1850s.