Donald Trump has denied offering to remove all sanctions against Iran in exchange for talks, which Iranian president Hassan Rouhani had claimed following his attendance at the United Nations General Assembly this week.

The Iranian president made the claim upon his arrival in Tehran from New York. Soon after the comments, Mr Trump denied the statement on Twitter.

"Iran wanted me to lift the sanctions imposed on them in order to meet. I said, of course, NO!" Mr Trump tweeted.

The Iranian president had said in Tehran that the offer came during a meeting among several heads of state.

"The German chancellor, the prime minister of England (Britain) and the president of France were in New York and all insisted that this meeting take place. And America says that I will lift the sanctions," Rouhani said. "It was up for debate what sanctions will be lifted and they had said clearly that we will lift all sanctions."

He added: "But this action wasn't in a manner that was acceptable, meaning that in the atmosphere of sanctions and the existence of sanctions and the toxic atmosphere of maximum pressure, even if we want to negotiate with the Americans in the 5+1 framework, no one can predict what the end and result of this negotiation will be."

In photos: British-flagged tanker seized by Iran Show all 13 1 /13 In photos: British-flagged tanker seized by Iran In photos: British-flagged tanker seized by Iran A speedboat of Iran's Revolutionary Guard moving around the British-flagged oil tanker Stena Impero Tasnim News Agency/AP In photos: British-flagged tanker seized by Iran Crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran A satellite image of the Iranian port city of Bandar Abbas reveals the presence of the seized British oil tanker, the Stena Impero on July 22 Maxar Technologies/Reuters In photos: British-flagged tanker seized by Iran Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran Iranian Revolutionary Guards patrolling around the captured British-flagged tanker Stena Impero as it's anchored off the Iranian port city of Bandar Abbas AFP/Getty In photos: British-flagged tanker seized by Iran epa07733612 A handout photo made available by Iranian state-run IRIB News Agency on 22 July 2019 shows crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz on 19 July 2019. Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July 2019. EPA/IRIB NEWS AGENCY / HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRIB NEWS AGENCY / HANDOUT EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran A satellite image of the Iranian port city of Bandar Abbas reveals the presence of the seized British oil tanker, the Stena Impero on July 22 Maxar Technologies/Reuters In photos: British-flagged tanker seized by Iran A speedboat of the Iran's Revolutionary Guard moves around a British-flagged oil tanker Stena Impero AP In photos: British-flagged tanker seized by Iran epa07733614 A handout photo made available by Iranian state-run IRIB News Agency on 22 July 2019 shows crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz on 19 July 2019. Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July 2019. EPA/IRIB NEWS AGENCY / HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRIB NEWS AGENCY / HANDOUT EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran In this photo released by state-run IRIB News Agency, which aired on Monday, July 22, 2019, shows cooks in the galley of the British-flagged tanker Stena Impero that was seized by Tehran in the Strait of Hormuz on Friday. The Associated Press cannot independently verify the condition of the crew members, but in the video they looked to be in good health and it didn't appear as though they were being filmed under duress. (IRIB News Agency via AP) AP In photos: British-flagged tanker seized by Iran epa07733619 A handout photo made available by Iranian state-run IRIB News Agency on 22 July 2019 shows crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz on 19 July 2019. Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July 2019. EPA/IRIB NEWS AGENCY / HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRIB NEWS AGENCY / HANDOUT EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran epa07733613 A handout photo made available by Iranian state-run IRIB News Agency on 22 July 2019 shows crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz on 19 July 2019. Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July 2019. EPA/IRIB NEWS AGENCY / HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRIB NEWS AGENCY / HANDOUT EPA/IRIB News Agency In photos: British-flagged tanker seized by Iran epa07733616 A handout photo made available by Iranian state-run IRIB News Agency on 22 July 2019 shows crew members of the British-flagged tanker Stena Impero, that was seized by Iran in the Strait of Hormuz on 19 July 2019. Iranian Revolutionary Guard Corps (IRGC) claims to have seized Stena Impero at the Strait of Hormuz with 23 crew on board on 20 July 2019. EPA/IRIB NEWS AGENCY / HANDOUT HANDOUT EDITORIAL USE ONLY/NO SALES IRIB NEWS AGENCY / HANDOUT EPA/IRIB News Agency

The United States, during the Trump administration, first re-imposed sanctions on Iran in November of last year, 180 days after the president announced he would pull the US from the Joint Comprehensive Plan of Action (JCPOA) — an agreement also known as the Iran nuclear agreement that was negotiated during the Obama administration.

Mr Trump has, since then, frequently claimed — erroneously — that the JCPOA amounted to a cash giveaway to the country, and that the Iranians did not offer anything in return.

The agreement was negotiated during the Obama administration alongside several US allies, and set up a framework for Iranian nuclear inspections in order to stop the country from developing weapons-grade uranium.

Support free-thinking journalism and attend Independent events

In exchange, the US and other countries lifted sanctions on roughly $1.8 billion in Iranian assets, which Mr Trump has said was a cash giveaway to Iran, including the suggestion that it was shipped to the country in cash. That characterisation of that money is false, however, as the sanctions merely lifted sanctions that prohibited Iran from accessing money that was already owned by Iran.