The Cape Cod Railroad (also currently referred to as the Cape Main Line) is a railroad in southeastern Massachusetts, running from Pilgrim Junction in Middleborough across the Cape Cod Canal Railroad Bridge, where it splits towards Hyannis in one direction and Falmouth in the other. It was incorporated in 1846 as the Cape Cod Branch Railroad to provide a rail link from the Fall River Railroad line in Middleborough to Cape Cod.