South Korean President Yoon Suk Yeol’s surprise decision to impose martial law in South Korea for the first time in more than 40 years — and then just as swiftly reverse course — sparked whiplash in the country’s foreign-traded assets and caught global markets off guard, at one point sending U.S. Treasury yields lower as traders sought a haven from potential instability.

In an emergency address delivered live to the nation, Yoon stunned voters, lawmakers and investors alike by declaring martial law on Tuesday after accusing the opposition of trying to paralyze his administration.

The decision, Yoon said, was made to protect freedom and constitutional order, but the market’s early verdict was swift: South Korean-related ETFs, its currency and most actively traded stocks all sharply weakened, while U.S. government bonds and even bitcoin were also briefly caught up in a risk-off flight to quality.

South Korean shares and the won then regained some lost ground after South Korean authorities vowed to provide "unlimited liquidity” to markets as needed and lawmakers voted to request lifting the shock measure, which Yoon ultimately agreed to do. Even so, the move, however brief, created fresh uncertainties within a major economy and pillar of global trade, keeping investors on edge.

"This is clearly going to raise longer term concerns about investing in Korea,” said Mark Ledger-Evans, an investment analyst at Ninety One U.K. "There will need to be a higher risk premium.”

The iShares MSCI South Korea exchange-traded fund sank as much as 7.1% in U.S. trading, while London-listed shares of Samsung Electronics lost as much as 7.5%. The onshore Korean won weakened as much as 2.9% to 1444.65 per dollar, leading losses among currency markets amid thin trading during the New York session.

"The domestic uncertainty adds to the external pressures in recent weeks as the market is starting to price in the rise of higher U.S. tariffs under the new Trump administration,” said Aroop Chatterjee, a strategist at Wells Fargo in New York.

Trading volume for the $3.9 billion iShares MSCI South Korea ETF reached a record for any full day in the fund’s more than 20-year lifespan. About 32 million shares traded as of 1:45 p.m. in New York, about 17 times the 20-day average for this time of day.

Other South Korean ADRs also declined. E-commerce company Coupang fell as much as 9.8% in U.S. trading, alongside losses in steel processor Posco Holdings Inc. and KB Financial Group. The Korea Exchange, the nation’s main stock bourse, said Wednesday trading is under review.

The onshore won pared some of its losses, ending the session at 1428.50 per dollar. Still the currency remains the worst performer in Asia this year, weakening by more than 9%.

"Martial law feels like a bit of overkill,” said Mark McCormick, global head of FX and EM strategy at TD Securities in Toronto. "Seems like the goal is deflection, reflecting low approval ratings and a fair amount of scandals. Policymakers like to keep a grip on KRW, so I would expect some of the volatility to settle down after today’s big move.”

Tuesday’s is the first overnight shock for the won, which began trading extended hours in July amid authorities’ broad push to get its stocks and bonds included in more global indexes. Previously, trading in the currency was halted at 3:30 p.m. local time.

Investors should go long the U.S dollar as the uncertainty persists, said Win Thin, global head of markets strategy at Brown Brothers Harriman.

"President Yoon may have overplayed his hand but the situation remains fluid,” he said. "Coups in South Korea were a real thing when I was growing up but I think most (including me) believe the country had moved beyond that.”

The declaration of martial law will likely compound an already protectionist zeitgeist, according to Joe Gilbert, a portfolio manager at Integrity Asset Management, adding that he believes "a viable off ramp exists to ameliorate the situation with the Korean parliament.”

In the meantime, Gilbert said he’s watching semiconductor stocks, which he says may be winners in the short term if there is any disruption to chip production with the South Korean behemoth Samsung.

South Korean financial authorities said they will use all possible measures to stabilize markets, according to a statement from the authorities. The finance ministry pledged "unlimited liquidity” to the market and the Bank of Korea said its monetary policy board will hold an extraordinary meeting on Wednesday morning.