In North America, the flexibility of diesel locomotives and the relative low cost of their infrastructure has led them to prevail except where legal or operational constraints dictate the use of electricity.
No main-line railways in Canada use electric locomotives as of January 2011.