U.S. and European equities also lost ground as investors trimmed their exposure to riskier assets amid ongoing uncertainty over whether the Trump administration will be able to proceed with its economic agenda and after cautious tones from U.S. and European central banks.

The TSX is taking its cue from U.S. markets, said Paul Taylor, chief investment officer of fundamental equities at BMO Asset Management Inc. "It is a market where the fundamentals are pretty good but the politics are pretty bad," he said.

Canada's economy has strengthened this year, prompting the Bank of Canada to raise interest rates in July for the first time in nearly seven years.

The Toronto Stock Exchange's S&P/TSX composite index closed down 48.57 points, or 0.32 percent, at 15,033.64.

The materials group, which includes precious and base metals miners and fertilizer companies, lost 0.5 percent as aluminum, copper and other base metals retreated from multi-year peaks.

Fertilizer company Potash Corp of Saskatchewan Inc declined 1.9 percent to C$21.90, and diversified miner Teck Resources Ltd fell 1.7 percent to C$29.25.

Among raw materials mined by Teck is copper, whose price in global markets fell 0.9 percent to $6,472.50 a ton.

First Quantum Minerals Ltd, another base metal miner, fell 1.8 percent to C$13.17.

Base metals fell as some investors locked in profits from a steep rally amid doubts about future demand in top metals consumer China.

Financial shares also lost ground, falling 0.4 percent, as a deadly car attack in Barcelona for which Islamic State claimed responsibility helped drive down the yields on safe-haven government bonds.

Lower bond yields raise the value of insurance companies' liabilities and increase net interest margins of banks.

U.S. crude prices settled 31 cents higher at $47.09 a barrel as investors focused on U.S. oil stockpile declines.

But the energy group was unable to hang onto earlier gains, ending down 0.3 percent.

Valeant Pharmaceuticals International Inc gained 1.6 percent to C$18.18 after the company said it had resolved the concerns of U.S. authorities about its Bausch + Lomb facility in Tampa, Florida.

Prometic Life Sciences Inc declined 6.4 percent to C$1.17, adding to a string of declines since reporting revenue that sharply missed expectations last week.

(Additional reporting by Alastair Sharp; Editing by Leslie Adler)

By Fergal Smith