PHOTO: Irinn TV
Now playing
01:35
Rouhani: Trump failed to kill nuclear deal
Iranian women chant slogans during an anti-US demonstration outside the former US embassy headquarters in the capital Tehran on May 9, 2018. - Iranians reacted with a mix of sadness, resignation and defiance on May 9 to US President Donald Trump's withdrawal from the nuclear deal, with sharp divisions among officials on how best to respond.
For many, Trump's decision on Tuesday to pull out of the landmark nuclear deal marked the final death knell for the hope created when it was signed in 2015 that Iran might finally escape decades of isolation and US hostility. (Photo by ATTA KENARE / AFP)        (Photo credit should read ATTA KENARE/AFP/Getty Images)
PHOTO: ATTA KENARE/AFP/AFP/Getty Images
Iranian women chant slogans during an anti-US demonstration outside the former US embassy headquarters in the capital Tehran on May 9, 2018. - Iranians reacted with a mix of sadness, resignation and defiance on May 9 to US President Donald Trump's withdrawal from the nuclear deal, with sharp divisions among officials on how best to respond. For many, Trump's decision on Tuesday to pull out of the landmark nuclear deal marked the final death knell for the hope created when it was signed in 2015 that Iran might finally escape decades of isolation and US hostility. (Photo by ATTA KENARE / AFP) (Photo credit should read ATTA KENARE/AFP/Getty Images)
Now playing
01:39
How will US pulling out of deal impact Iranians?
PHOTO: CNN
Now playing
01:07
Trump announces withdrawal from Iran deal
PHOTO: Photo Illustration: Getty/Shutterstock/CNNMoney
Now playing
01:55
Breaking down Trump's decision to leave the Iran deal
Iranian lawmakers burn two pieces of papers representing the U.S. flag and the nuclear deal as they chant slogans against the U.S. at the parliament in Tehran, Iran, Wednesday, May 9, 2018. Iranian lawmakers have set a paper U.S. flag ablaze at parliament after President Donald Trump's nuclear deal pullout, shouting, "Death to America!". President Donald Trump withdrew the U.S. from the deal on Tuesday and restored harsh sanctions against Iran. (AP Photo)
PHOTO: AP
Iranian lawmakers burn two pieces of papers representing the U.S. flag and the nuclear deal as they chant slogans against the U.S. at the parliament in Tehran, Iran, Wednesday, May 9, 2018. Iranian lawmakers have set a paper U.S. flag ablaze at parliament after President Donald Trump's nuclear deal pullout, shouting, "Death to America!". President Donald Trump withdrew the U.S. from the deal on Tuesday and restored harsh sanctions against Iran. (AP Photo)
Now playing
00:38
Watch: US flag set alight in Iran's parliament
France Nuclear Fallout_00005926.jpg
France Nuclear Fallout_00005926.jpg
Now playing
02:59
Renewed Iran sanctions may hurt France as well
U.S. President Donald Trump answers questions from the press during a meeting with former U.S. Secretary of State Henry Kissinger in the Oval Office October 10, 2017 in Washington, DC. Trump answered a range of questions during the portion of the meeting that was open to the press, including queries on Secretary of State Rex Tillerson.
PHOTO: Win McNamee/Getty Images North America/Getty Images
U.S. President Donald Trump answers questions from the press during a meeting with former U.S. Secretary of State Henry Kissinger in the Oval Office October 10, 2017 in Washington, DC. Trump answered a range of questions during the portion of the meeting that was open to the press, including queries on Secretary of State Rex Tillerson.
Now playing
02:04
Years of Trump panning the Iran deal
ISFAHAN, IRAN - MARCH 30:  A worker walks inside of an uranium conversion facility March 30, 2005 just outside the city of Isfahan, about 254 miles (410 kilometers), south of capital Tehran, Iran. The cities of Isfahan and Natanz in central Iran are home to the heart of Iran's nuclear program. The facility in Isfahan makes hexaflouride gas, which is then enriched by feeding it into centrifuges at a facility in Natanz, Iran. Iran's President Mohammad Khatami and the head of Iran's Atomic Energy Organisation Gholamreza Aghazadeh is scheduled to visit the facilities. (Photo by Getty Images)
PHOTO: Getty Images/Getty Images Europe/Getty Images
ISFAHAN, IRAN - MARCH 30: A worker walks inside of an uranium conversion facility March 30, 2005 just outside the city of Isfahan, about 254 miles (410 kilometers), south of capital Tehran, Iran. The cities of Isfahan and Natanz in central Iran are home to the heart of Iran's nuclear program. The facility in Isfahan makes hexaflouride gas, which is then enriched by feeding it into centrifuges at a facility in Natanz, Iran. Iran's President Mohammad Khatami and the head of Iran's Atomic Energy Organisation Gholamreza Aghazadeh is scheduled to visit the facilities. (Photo by Getty Images)
Now playing
01:20
Explaining the Iran nuclear deal
PHOTO: CNN
Now playing
00:47
John Kerry wants Trump to stay in Iran deal
Now playing
01:47
Rouhani: Pity if rogue newcomers end the deal
President Donald Trump delivers a statement on the Iran nuclear deal from the Diplomatic Reception Room of the White House, Tuesday, May 8, 2018, in Washington. (AP Photo/Evan Vucci)
PHOTO: Evan Vucci/AP
President Donald Trump delivers a statement on the Iran nuclear deal from the Diplomatic Reception Room of the White House, Tuesday, May 8, 2018, in Washington. (AP Photo/Evan Vucci)
Now playing
02:42
Trump: US withdrawing from Iran deal
WASHINGTON, DC - AUGUST 04:  Former CIA Director Gen. Michael Hayden (Ret.) testifies during a hearing before Senate Armed Services Committee August 4, 2015 on Capitol Hill in Washington, DC. The committee held a hearing on the Joint Comprehensive Plan of Action (JCPOA) and the military balance in the Middle East.  (Photo by Alex Wong/Getty Images)
PHOTO: Alex Wong/Getty Images North America/Getty Images
WASHINGTON, DC - AUGUST 04: Former CIA Director Gen. Michael Hayden (Ret.) testifies during a hearing before Senate Armed Services Committee August 4, 2015 on Capitol Hill in Washington, DC. The committee held a hearing on the Joint Comprehensive Plan of Action (JCPOA) and the military balance in the Middle East. (Photo by Alex Wong/Getty Images)
Now playing
02:12
Ex-CIA chief: Netanyahu's findings are old news
Israeli Prime Minister Benjamin Netanyahu presents material on Iranian nuclear weapons development during a press conference in Tel Aviv, Monday, April 30 2018. Netanyahu says his government has obtained "half a ton" of secret Iranian documents proving the Tehran government once had a nuclear weapons program. Calling it a "great intelligence achievement," Netanyahu said Monday that the documents show that Iran lied about its nuclear ambitions before signing a 2015 deal with world powers. (AP Photo/Sebastian Scheiner)
PHOTO: Sebastian Scheiner/AP
Israeli Prime Minister Benjamin Netanyahu presents material on Iranian nuclear weapons development during a press conference in Tel Aviv, Monday, April 30 2018. Netanyahu says his government has obtained "half a ton" of secret Iranian documents proving the Tehran government once had a nuclear weapons program. Calling it a "great intelligence achievement," Netanyahu said Monday that the documents show that Iran lied about its nuclear ambitions before signing a 2015 deal with world powers. (AP Photo/Sebastian Scheiner)
Now playing
02:15
Responses in wake of Netanyahu's Iran speech
Josh Rogin 01
PHOTO: CNN
Josh Rogin 01
Now playing
01:44
Takeaways from Netanyahu's Iran remarks
PHOTO: pool
Now playing
01:31
Trump: Iran under control of fanatical regime
nikki haley us evidence against iran weapons sot _00013621.jpg
nikki haley us evidence against iran weapons sot _00013621.jpg
Now playing
02:00
Haley: This is concrete evidence against Iran
(CNN) —  

Iranian President Hassan Rouhani mocked Donald Trump for failing to kill off the Iran nuclear deal despite the US leader’s 2016 election promise to do so.

Trump signed off on a waiver Friday to keep several sanctions on Iran suspended, essentially keeping the nuclear deal in effect.

The US President must sign such waivers every few months under the Joint Comprehensive Plan of Action (JCPOA), an agreement brokered in 2015 that obliges Iran to restrict its nuclear program in exchange for the easing of sanctions.

Despite keeping the deal intact, Trump stirred ire in Tehran on Friday by announcing fresh separate sanctions on 14 Iranian individuals and entities at the same time. Among them was the head of Iran’s judiciary, Ayatollah Sadeq Amoli Larijani.

Iranian President Hassan Rouhani speaking in Tehran, on December 31, 2017.
PHOTO: Handout/Iranian Presidency Office via AP
Iranian President Hassan Rouhani speaking in Tehran, on December 31, 2017.

“It’s been one year since Trump has been trying to kill JCPOA and hasn’t been successful. This means victory of law over dictatorship,” Rouhani said Sunday, slamming the US for what he said were its attempts at “self-aggrandizing.”

State news agency IRNA reported him saying that Iran had proved it was right “and our enemies were wrong.”

“I am very happy to see that the White House has failed to disrupt international obligations, break loyalty and stand against the resolution of the United Nations Security Council which was the outcome of an agreement among seven countries,” he said.

Rouhani’s remarks were the latest in a tit-for-tat exchange between Trump and Iranian officials over the deal, as well as anti-government protests that took place across the country recently. Trump openly supported the protesters, who staged the biggest challenge to the Iranian regime since 2009. The US State Department also openly encouraged Iranians to protest.

Iranian students protest at the University of Tehran during a demonstration driven by anger over economic problems on December 30.
PHOTO: STR/AFP/Getty Images
Iranian students protest at the University of Tehran during a demonstration driven by anger over economic problems on December 30.

Many of the new US sanctions on Iran were in response to the government’s crackdown on the largely peaceful protests. Others were linked to support for the country’s ballistic missile program, which falls outside the scope of the nuclear deal.

In a bizarre kicker in the waiver announcement, the US indicated it hoped to rewrite much of the nuclear agreement and to get its European allies, who wholly back the deal as it is, to do the bargaining for it. European foreign ministers on Thursday urged Trump to sign the waiver and support the deal.

The 2015 agreement was brokered by the Obama administration, along with the UK, Russia, France, Germany and China.

Trump under pressure

Iran on Saturday warned of a “severe” response to the new sanctions.

Iran’s Foreign Ministry said the Trump administration’s “hostile and illegal act” in targeting Larijani “has gone way beyond all internationally accepted behavior red lines.”

Trump – who during the election campaign described the Iran pact as “the worst deal ever” – is under pressure to make good on more of his pre-election promises. But he is also under immense pressure by European powers who helped brokered the deal to preserve it. According to US officials who spoke to CNN, Trump’s own senior security advisers also urged the President to sign off on the waivers and not to kill off the agreement.

The new US sanctions on Iran are a way for Trump to keep pressure on Iran without jeopardizing the nuclear deal.

They are also the first concrete international response to the Iranian government’s treatment of protesters.

Roughly 3,700 people were arrested during the rallies, one of the country’s lawmakers said Tuesday. Other Iranian authorities had previously said 450 people were detained.

A 22-year-old protester, Sina Ghanbari, died in Tehran’s notorious Evin Prison in police custody, state-controlled Aftab News reported last week.

Under increased scrutiny, Tehran on Saturday lifted restrictions on Telegram, acknowledging that the social networking app had been “filtered” during the protests, state media reported.

CNN’s Sara Mazloumsaki contributed to this report.