NEW YORK -  European stock markets ended the week higher on bargain-hunting, shrugging off weakness on Wall Street where tough talk on trade from US President Donald Trump's administration revived concerns about a global trade war.

In London, stock prices sagged under pressure from South Africa's political turmoil, which hit mining stocks on the FTSE 100. US stocks also finished lower, ending an otherwise strong quarter on a negative note. But prices in Frankfurt and Paris, which had started the day in negative territory, ended the session higher as investors snapped up cheap bargains before they closed their books on the final day of the first quarter.

Jack Ablin, chief investment officer at BMO Private Bank, said investors frequently engage in "window dressing" at the end of a quarter, selling off stocks that have not performed well and boosting holdings that have outperformed. The weakness on Wall Street was put down to the fact Trump signed an executive order tasking staff to pinpoint countries and goods responsible for America's nearly $50 billion a month trade deficit.

The move was accompanied by a series of aggressive comments from administration officials on trade, much of it aimed at China. Trump, on Twitter, predicted that a meeting next week with Chinese President Xi Jinping "will be a very difficult one in that we can no longer have massive trade deficits." Still, some analysts believe the concrete actions from the Trump administration may be more moderate than the rhetoric suggests.

In London, investors digested unrevised data, which showed the British economy expanded by 0.7 percent in the final three months of last year despite jitters over Brexit. In currency deals, South Africa's rand plunged after President Jacob Zuma sacked finance minister Pravin Gordhan.

The news sent shares in miner Anglo American down by 2.9 percent, while finance group Old Mutual topped the fallers' board with a 7.3-percent tumble. "Stocks with exposure to South Africa plunged amid deep fears about the state of the country's government following the sacking of respected finance minister Pravin Gordhan," said Neil Wilson, analyst with ETX Capital. Miners also were hit by softer metal prices, with Antofagasta down 0.7 percent, BHP Billiton shedding 2.9 percent and Rio Tinto losing 2.5 percent.

The dollar surged five percent against the rand after the sacking of Gordhan, who had enjoyed the support of many international investors and had campaigned for budget discipline. Gordhan was also widely admired by ordinary South Africans and veterans of the anti-apartheid struggle and there are fears his removal -- along with several top cabinet members -- could precipitate a split in the ruling African National Congress, the party of Nelson Mandela.

The decision comes as the government struggles to get a grip on the once-booming economy of South Africa, one of the continent's biggest and part of the so-called BRICS grouping that includes China.