Sir William Mackenzie (October 17, 1849 – December 5, 1923) was a Canadian railway contractor and entrepreneur.
He entered the railway business as a contractor under civil engineer James Ross, working on projects in Ontario, British Columbia, Maine, and the North-West Territories (present-day Saskatchewan and Alberta) between 1874 and 1891.
In 1895, together with Donald Mann, Mackenzie began to purchase or build rail lines in the Canadian prairies, which would form the Canadian Northern Railway (CNoR), a company that would stretch from Vancouver Island to Cape Breton Island and form Canada's second transcontinental railway system.
Mackenzie and Mann were knighted in 1911 for their efforts in the railway industry, but personal and company financial difficulties led to the bankruptcy of the CNoR.
He was inducted into Ottawa's Canadian Railway Hall of Fame in 2002 along with partner Mann.