Stocks fell sharply on Wall Street on Monday, knocking nearly 400 points off the Dow Jones industrial average.

The benchmark S&P 500 had its worst day in a week as the sell-off put the market deeper into the red for August. The selling was widespread, with technology companies and banks accounting for a big share of the decline.

Investors sought safety in government bonds, sending their yields tumbling. The price for gold, another traditional safe-haven asset, ended higher.

The costly trade war between the United States and China has rattled markets this month. An escalation in tensions between the world’s largest economies has stoked worries that the long-running trade conflict will undercut an already slowing global economy.