Ontario and Quebec Railway
The Ontario and Quebec Railway (O&Q) was a railway that was associated with the Canadian Pacific Railway. It was chartered in 1881. Over the next few years the O&Q built a line between Perth, Ontario and Toronto, and acquired other railways, including the Toronto Grey & Bruce Railway, the Credit Valley Railway, and the Canada Central Railway. The CPR formalized its association with the O&Q by obtaining a perpetual lease on it in 1884. By 1890, this lease gave the CPR an extensive network in Ontario and Quebec, with lines reaching between Quebec City, Quebec, and Windsor, Ontario, as well as a line running from near Ottawa, Ontario to a connection with the CPR at Mattawa.
The CPR never owned all of the O&Q, a fact that caused legal problems when it attempted to sell off some O&Q real estate in Toronto that had become quite lucrative. However, the CPR won the court battle.
While the O&Q and the TG&B existed on paper until 1998, when they were merged into the St. Lawrence and Hudson Railway, they had always been operated as part of the CPR system.