The town lies on the Ayrshire Coast Line and once was a busier junction with trains from Kilmarnock and the Dalry and North Johnstone Line joining the line here. The railway station at Dalry opened in March 1840 as part of the Glasgow, Paisley, Kilmarnock and Ayr Railway. The station at Dalry Junction opened in April 1843 with the line to Kilmarnock via Crosshouse, subsequently closing in January 1860 with the interchange transferred to Dalry railway station. The line to Kilmarnock remained open with local services ceasing in 1955, with occasional long distance passenger services remaining. The line closed in 1973, following the electrification of the WCML. The closure of the Dalry and North Johnstone Line to passengers in 1966 and through freight in 1971, and steel freight traffic to Kilbirnie in 1977. Dalry station retained four platforms until rebuilding of the station and associated overbridge as part of the electrification of the Ayrshire Coast line during the early 1980s.