Donald Trump’s surprisingly strong electoral performance spooked investors on Tuesday night.

As the presidential race tightened ― Trump racked up key battleground states like Florida, while others, like Virginia, ended up closer than expected ― investors began selling futures, or bets on the future of value of stocks.

The Dow Jones, S&P 500 and Nasdaq Futures Indexes all declined precipitously.

Nasdaq and S&P futures were halted after hitting limit down, the maximum amount permitted for a commodity price to decrease in one trading day.

CNBC The Dow Jones Futures dropped nearly 500 points on Tuesday night.

CNBC S&P 500 Futures dropped sharply as the presidential election tightened on Tuesday night.

CNBC The Nasdaq dropped sharply as the presidential election tightened on Tuesday night.

The Mexican peso also plummeted as Trump’s prospects brightened.

Mexican peso crashing, sharpest drop in 20 years, via @erikbryn pic.twitter.com/8PtZUuxKam — David Beard (@dabeard) November 9, 2016

Asian stocks also tumbled after trading opened Wednesday morning, The Associated Press reported.

Trump has said he would renegotiate the North American Free Trade Agreement, which includes Mexico, and take a harder line against China and other Asian trading partners.