It was effectively controlled by the Canadian Pacific Railway (CPR), as 95% of the shares issued were held by persons connected with the CPR. Through the O&Q, the CPR created its railway network in southern and eastern Ontario:   The CPR formalized its association with the O&Q by obtaining a 999-year lease on it in 1884, expiring in 2883. By 1890, this lease gave the CPR an extensive network in Ontario and Quebec, with lines reaching between Quebec City and Windsor, Ontario, as well as a line running from near Ottawa to a connection with the CPR at Mattawa, Ontario. The CPR never owned all of 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, which went to the Supreme Court of Canada. While O&Q and the TG&B had always been operated as part of the CPR network, they were finally amalgamated to form the St. Lawrence and Hudson Railway in 1998, as a consequence of a corporate reorganization undertaken by CP.