By 1867, it had become the largest railroad system in the world by accumulating more than 2055 kilometers of track that connected locations between its ocean port at Portland, Maine, its river port at Rivière-du-Loup, the three northern New England states, and much of the southern areas of the new provinces of Quebec and Ontario.