The Toronto Stock Exchange's S&P/TSX composite index ended up 60.76 points, or 0.3%, at 20,463.42.

"Energy has rallied pretty nicely" on the jump in oil prices, said Kevin Headland, senior investment strategist at Manulife Investment Management.

The energy sector rose 3.1% to notch its highest closing level since July 5, while crude oil futures settled nearly 2% higher at $75.45 a barrel as investors fretted about tighter supplies.

The heavily weighted financial services sector ended 0.5% higher but information technology lost 1.2%.

The move lower in technology was "a carryover from the U.S., given the jump in 10-year yields today," Headland said.

The U.S. 10-year yield rose above 1.5% for the first time since June 29 before easing, bolstered by solid economic data and signals the Federal Reserve is shifting toward a more hawkish policy.

Higher yields tend to hurt the shares of companies with high growth prospects because they reduce the value of future cash flows.

The S&P 500, which has a higher technology weighting than the Toronto market, ended lower.

"In the Canadian stock market... we're playing a little bit of catch-up to U.S. stocks as they outperformed Canadian stocks in the last five sessions," said Michael White, portfolio manager at Picton Mahoney Asset Management.

The healthcare sector, which includes cannabis producers, ended 2.4% higher. The materials group gained 0.5%.

(Reporting by Fergal Smith; Additional reporting by Amal S in Bengaluru; Editing by Dan Grebler)

By Fergal Smith