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.