The president then used a U.N. Security Council meeting to make allegations against Beijing over election meddling.
Addressing the council after Mr Trump, French President Emmanuel Macron hit back, declaring that concerns about Iran can not be reduced to "a policy of sanctions and containment" that was in place for years before the landmark deal.
Trump claimed his administration was one of the most successful in USA history in his remarks at the United Nations on Tuesday, which drew laughter from the gathered diplomats.
At the U.N., Trump seized his opportunity to assert American independence from the worldwide body.
The president went on to rail against global climate change initiatives; encourage other nations to isolate and sanction Iran; reiterate his point that other U.N. countries need to contribute more of their "share" of foreign aid and underline his hard stance on trade. The move has exposed divisions between the U.S. and its European allies.
"For the first time, the United States president was asking other members not to adhere to a resolution of the very same Security Council over which he was presiding", quipped Rouhani.
Liverpool injury update ahead of Carabao Cup clash with Chelsea
To him, his followers are his best friends and he would go a long way to ensure that he keeps them refreshed and entertained. Liverpool have released an update on player injuries ahead of their Carabao Cup clash with Chelsea on Wednesday.
But in this case, unexpected took the form of Trump being mocked with laughter by the leaders of almost every nation on the planet.
"This frightful, one-sided deal allowed Iran to continue its path toward a bomb and gave the regime a cash lifeline when they needed it the most", Trump complained.
In May, Republican Trump withdrew the United States from the deal to put curbs on Iran's nuclear program in exchange for easing sanctions.
Rouhani pointed to a session of the Security Council chaired by Trump earlier Wednesday, where the leaders of Britain and France backed the nuclear deal, as well as a statement by European powers who say they will find ways to continue business with Iran and evade impending sanctions.
Meanwhile, European leaders announced plans to blunt the effects of USA sanctions on Iran, which will expand in November. He threatened to limit US aid only to countries that are friendly to the United States. Trump has said sanctions on North Korea would remain for now.
Trump has had a troubled relationship with the United Nations since entering the White House.
Headlines quickly emerged about the world laughing at Trump. "The regime is the world's leading sponsor of terror, and fuels conflict across the region and far beyond".