Four railways pass through Whitby. The Toronto-Montreal corridor main lines of the Canadian National Railway and Canadian Pacific Railway both pass east–west through the south end of town. A second CP line running from Toronto to Havelock also passes through the northern part of Whitby. Via Rail trains travel through Whitby, but the nearest station is in Oshawa. Finally, GO Transit provides frequent service via its Lakeshore East line, which (in Whitby) runs parallel to the CN tracks. A GO Station is located in Town.