The railroad history of Portland, Maine, began in 1842 with the arrival of the Portland, Saco & Portsmouth Railway (PS&P). Most of the rail activity in Portland revolved around agricultural goods bound for export and import freight from Europe. Yet Maine's largest city also enjoyed 125 years of continuous passenger rail service, from 1842 until 1967, and Amtrak began serving the city in 2001. For most of Portland's history, passenger train schedules were designed with intercity travel rather than daily commuting in mind; passenger activities were mostly confined to intercity travel from Portland to Boston, Montreal, Nova Scotia, and points west.
Portland first became a transportation hub when the Cumberland and Oxford Canal to interior Maine was completed in 1832. The first railroad reached the city 10 years later: the Portland, Saco & Portsmouth Railway (PS&P), whose joint operation with the Eastern Railroad of Massachusetts began in 1842. The PS&P's main terminal in Portland was on Commercial Street south of Union Street. Six passenger trains per day connected Portland with East Boston. The Boston & Maine Railroad (B&M) arrived in 1843 (via PS&P to Portland).
Portland businessmen led by John A. Poor believed rail connections with Boston threatened Portland's independent seaport. Poor promoted a separate system of Portland gauge railroads to funnel interior traffic to Portland in competition with the standard gauge railroads bringing traffic into the port of Boston. The Portland Company was organized in 1846 to build locomotives for the Atlantic & St. Lawrence Railroad (A&SL) (with trains from India Street in Portland to Yarmouth in 1848 and ultimately to Montreal in 1859). Services to Auburn, Lewiston, and Waterville began in 1849 on lines of the original Maine Central (MEC) system that are now the (GRS) main line to Lewiston, Waterville and Bangor. The route to Brunswick opened in 1847 as a portion of the Kennebec & Portland Railroad which was subsequently subsumed by the MEC and GRS.