In 1871, the Toronto & Nipissing Railway came to Markham. The Grand Trunk Railway took over the railway in 1893, and became part of CNR in 1918