With so many domestic issues in America and a costly crisis in Ukraine, the idea of American troops heading to Taiwan to fight the Chinese military is terrifying

President Joe Biden said Monday that the United States would be willing to intervene militarily if China were to invade the self-governing island of Taiwan, again sowing confusion over American policy in the region.

Speaking during a news conference in Tokyo alongside Japanese Prime Minister Fumio Kishida, Biden said Beijing was already “flirting with danger” with its recent military drills and other aggression toward Taiwan, which China views as its own territory.

The question came up in the context of Russia’s invasion of Ukraine.

“You didn’t want to get involved in the Ukraine conflict militarily for obvious reasons,” a reporter asked. “Are you willing to get involved militarily to defend Taiwan if it comes to that?”

“Yes,” Biden responded.

“That’s the commitment we made,” he added.

Shortly after the president’s comments, a White House official appeared to walk back the declaration that the U.S. could intervene militarily.

“As the President said, our policy has not changed. He reiterated our One China Policy and our commitment to peace and stability across the Taiwan Strait,” the official said. “He also reiterated our commitment under the Taiwan Relations Act to provide Taiwan with the military means to defend itself.”

Chinese Foreign Ministry spokesperson Wang Wenbin expressed “strong dissatisfaction and firm opposition to the U.S.’s remarks” and warned Washington against supporting “Taiwan independence.”

“Taiwan is an inalienable part of China’s territory, and the Taiwan issue is purely China’s internal affairs, which brooks no interference from any external forces,” Wang said on Monday, adding: “On issues concerning China’s core interests such as sovereignty and territorial integrity, China has no room for compromise.”

“No one should underestimate the strong determination, firm will, and strong ability of the Chinese people to defend national sovereignty and territorial integrity,” he said.

Taiwan’s foreign affairs ministry welcomed Biden’s comments in a statement expressing “gratitude” to the president and the U.S. government for “reaffirming their rock-solid commitment to Taiwan.”

Similar comments Biden made about Taiwan have prompted confusion in the past.

While the U.S. is required by law to provide democratically governed Taiwan — which Beijing views as a breakaway region — with defensive weapons, a policy of “strategic ambiguity” has long made it unclear what exactly America would do if Taiwan were attacked.

During the news conference, Biden said Washington’s “policy toward Taiwan” had “not changed at all.”

Biden said the U.S. will continue to act in line with the One China policy, which recognizes Washington’s formal relationship with Beijing, but added: “We remain committed to supporting the peace and stability across the Taiwan Straits and ensuring there’s no unilateral change to the status quo.”