Rouhani warns US against 'political suicide'
At his swearing-in ceremony, Mr Rouhani said Iran would continue to abide by the terms of the deal as long as the other signatories do the same.
The White House says Iran is complying with the deal but Mr Trump says Iran is violating its spirit.
Last month the US state department announced new sanctions on the country.
The US says the sanctions relate to Iran's missile programme and alleged support for terror groups but Tehran says they violate the nuclear deal.
Mr Rouhani - being sworn in for a second term after winning presidential elections in May - said he had nothing to do with "newcomers to the world of politics" and urged "old-timers" to see the nuclear deal as an example of how to manage international relations.
"Those who want to tear apart the JCPOA [nuclear deal] should know that they would also be tearing apart their political life," he said in a ceremony broadcast live on state TV.
He accused the US of a "lack of commitment" to the deal and said it was an "unreliable partner".
Meanwhile Iranian officials have been urging Europe not to side with the Trump administration.
Foreign Minister Javad Zarif said Mr Trump was "trying to destroy the nuclear accord at Iran's expense" and said "Europe should be conscious of this", private Tasnim news agency said.
Ali Akbar Velayati, a senior adviser to Iran's Supreme Leader Ayatollah Ali Khamenei, asked Europe to "take a more independent policy towards Iran", state media reported.
Mr Rouhani won 57% of the vote in May's election after promising to create jobs and build bridges with the outside world.
Related news releases
- 20.09.2017'Ignorant, absurd, hateful rhetoric' - Iran's president on Trump's un speech
- 20.09.2017Iran publicly hangs man for rape, murder of 7-year-old girl
- 20.09.2017Turkey mulling sanctions over Kurdish referendum
- 19.09.2017Turkish jets kill 3 PKK terrorists in northern Iraq
- 19.09.2017Iran says it will not renegotiate nuclear deal
- 19.09.2017Iraqi Turkmen leader: Barzani plans to annex Kirkuk to Kurdish region
- 19.09.2017Palestine: President, Hamas' Haniyeh talk on phone
- 19.09.2017North Korea: UN sanctions motivate acceleration of nuclear weapon development
- 19.09.2017Turkish president speaks with Iraqi PM on phone
- 18.09.2017Iraq Supreme Court orders suspension of Kurdistan referendum
- 17.09.2017Turkey names new head to religious affairs directorate
- 16.09.2017Car bomb kills one, wounds 10 in disputed Iraqi oil city
- 16.09.2017Iraqi army liberates ISIS-held Akashat town near Syria border
- 16.09.2017Rouhani urges EU to pressure US
- 15.09.2017Islamic State claims responsibility for London blast:
- 15.09.2017Turkish Deputy PM meets Rohingya group's head
- 15.09.2017Seoul holds emergency National Security meeting after North Korean missile test
- 15.09.2017North Korea fires missile over Japan that lands far out in the Pacific
- 14.09.2017At least 50 die in twin attacks in Iraq
- 14.09.2017Airstrikes kill 5 PKK terrorists in eastern Turkey
- 14.09.2017Malaysia’s prime minister calls Myanmar violence genocide
- 14.09.201725 dead in fire at religious school in Malaysia
- 14.09.2017Evacuated Islamic State fighters reach Syria's Deir al-Zor: pro-Damascus commander
- 14.09.2017North Korea accused of raising money by stealing bitcoins in hack attacks
- 13.09.2017Suicide bomb near cricket stadium in Afghan capital kills at least three
- 13.09.2017Iraqi MPs call for crisis meeting on Kurd region poll
- 13.09.2017Five crew missing after dredger collides with tanker off Singapore
- 12.09.2017200,000 Rohingya children need urgent support: UNICEF
- 12.09.2017Airstrikes kill 14 terrorists in Kirkuk: Iraqi sources
- 11.09.2017Israel welcomes decision to pardon blogger Lapshin
- 10.09.2017First Summit on Science and Technology of Organization of Islamic Cooperation starts in Astana
- 10.09.2017North Korea's Kim Jong Un fetes nuclear scientists, holds celebration bash
- 10.09.2017Rohingya insurgents declare temporary ceasefire amid humanitarian crisis
- 10.09.2017North Korea 'secretly helped by Iran to gain nuclear weapons', British officials fear
- 10.09.2017US warplanes stop shadowing ISIL convoy at Russia’s request
- 10.09.2017Rouhani, Erdogan meet in Astana ahead of OIC summit
- 10.09.2017Policeman martyred in vehicle accident in Turkey's east
- 10.09.2017PKK attacker on Turkish opposition convoy identified
- 09.09.20177 PKK terrorists killed in SE Turkey and Iraq's north
- 09.09.2017Deir ez-Zor: Syrian, Russian forces inflict biggest defeat on ISIL in 3 years
- 06.08.2017Clandestine Isis unit training Britons to launch attacks on UK
- 07.08.2017India kills '5 militants' along Kashmir de facto border
- 07.08.2017Iran arrests members of Daesh-linked group suspected of plotting terror attacks
- 06.08.2017Former minister elected as new vice president of India
- 05.08.201743 civilians killed in U.S.-led airstrikes in Syria's Raqqa
- 05.08.2017US’ Tillerson arrives in Philippines for ASEAN Forum