WASHINGTON — President Donald Trump announced Tuesday the U.S. will pull out of the landmark nuclear accord with Iran, declaring he was making the world safer but dealing a profound blow to allies and deepening the president’s isolation on the world stage.

“The United States does not make empty threats,” he said in a televised address from the White House.

“The United States does not make empty threats.”- President Donald Trump

Trump said the 2015 agreement, which included Germany, France and Britain, was a “horrible one-sided deal that should never ever have been made.” He added that the United States “will be instituting the highest level of economic sanction.”

Trump’s decision means Iran’s government must now decide whether to follow the U.S. and withdraw or try to salvage what’s left of the deal. Iranian President Hassan Rouhani said he was sending his foreign minister to the countries remaining in the accord but warned there was only a short time to negotiate with them and his country could soon “start enriching uranium more than before.”

French President Emmanuel Macron said his country, Britain and Germany all regretted Trump’s decision.

The administration said it will re-impose nuclear sanctions on Iran immediately but allow grace periods for businesses to wind down activity.

The Treasury Department said there will be “certain 90-day and 180-day wind-down periods” but didn’t specify which sanctions would fall under which timelines. Treasury says at the end of those periods, the sanctions will be in “full effect.”

National Security Adviser John Bolton said nobody should sign contracts for new business with Iran.

In his remarks, Trump blasted the deal as “defective at its core.” As evidence, he cited documents recently released by Israeli Prime Minister Benjamin Netanyahu, a leading critic of the deal.

Netanyahu unveiled documents seized by Israeli intelligence showed Iran had attempted to develop a nuclear bomb in the previous decade, especially before 2003. Although he gave no explicit evidence that Iran violated the 2015 deal, he said Iran had clearly lied in the past and could not be trusted. Iran has denied ever pursuing nuclear arms

The Iran agreement, struck in 2015 by the United States, other world powers and Iran, lifted most U.S. and international sanctions against the country. In return, Iran agreed to restrictions on its nuclear program making it impossible to produce a bomb, along with rigorous inspections.

In a burst of last-minute diplomacy, punctuated by a visit by Britain’s top diplomat, the deal’s European members gave in to many of Trump’s demands, according to officials, diplomats and others briefed on the negotiations. Yet they still left convinced he was likely to re-impose sanctions.

READ MORE: France, Britain, Germany ‘regret’ Trump’s decision to leave Iran nuclear agreement

Trump spoke with French President Emmanuel Macron and Chinese leader Xi Jinping about his decision Tuesday. The British foreign secretary traveled to Washington this week to make a last-minute pitch to the U.S. to remain in the deal, according to a senior British diplomat. The diplomat, who spoke on condition of anonymity, said the British objective will remain to uphold and maintain the deal.

Hours before the announcement, European countries met to underline their support for the agreement. Senior officials from Britain, France and Germany met in Brussels with Iran’s Deputy Foreign Minister for Political Affairs, Abbas Araghchi.

If the deal collapses, Iran would be free to resume prohibited enrichment activities, while businesses and banks doing business with Iran would have to scramble to extricate themselves or run afoul of the U.S. American officials were dusting off plans for how to sell a pullout to the public and explain its complex financial ramifications.

In Iran, many were deeply concerned about how Trump’s decision could affect the already struggling economy. In Tehran, President Hassan Rouhani sought to calm nerves, smiling as he appeared at a petroleum expo. He didn’t name Trump directly, but emphasized that Iran continued to seek “engagement with the world.”

“It is possible that we will face some problems for two or three months, but we will pass through this,” Rouhani said.

READ MORE: What scrapping the Iran nuclear deal could mean for the U.S.

Under the most likely scenario, Trump would allow sanctions on Iran’s central bank — intended to target oil exports — to kick back in, rather than waiving them once again on Saturday, the next deadline for renewal, said individuals briefed on Trump’s deliberations. Then the administration would give those who are doing business with Iran a six-month period to wind down business and avoid breaching those sanctions.

Depending on how Trump sells it — either as an irreversible U.S. pullout, or one final chance to save it — the deal could be strengthened during those six months in a last-ditch effort to persuade Trump to change his mind. The first 15 months of Trump’s presidency have been filled with many such “last chances” for the Iran deal in which he’s punted the decision for another few months, and then another.

READ MORE: Iran says there’s a ‘short time’ to negotiate with countries remaining in nuclear deal after U.S. withdraws

Even Trump’s secretary of state and the U.N. agency that monitors nuclear compliance agree that Iran, so far, has lived up to its side of the deal. But the deal’s critics, such as Israel, the Gulf Arab states and many Republicans, say it’s a giveaway to Tehran that ultimately paves the path to a nuclear-armed Iran several years in the future.

Iran, for its part, has been coy in predicting its response to a Trump withdrawal. For weeks, Iran’s foreign minister had been saying that a re-imposition of U.S. sanctions would render the deal null and void, leaving Tehran little choice but to abandon it as well. But on Monday, Rouhani said Iran could stick with it if the European Union, whose economies do far more business with Iran than the U.S., offers guarantees that Iran would keep benefiting.

For the Europeans, Trump’s withdrawal constitutes dispiriting proof that trying to appease him is futile.

Although the U.S. and Europeans made progress on ballistic missiles and inspections, there were disagreements over extending the life of the deal and how to trigger additional penalties if Iran were found violating the new restrictions, U.S. officials and European diplomats have said. The Europeans agreed to yet more concessions in the final days of negotiating ahead of Trump’s decision, the officials added.

Associated Press writers Matthew Lee, Jill Colvin, Zeke Miller and Ken Thomas in Washington and Amir Vahdat and Nasser Karimi in Tehran, Iran, contributed to this report.