UK Foreign Secretary Boris Johnson speaking about the Iran nuclear deal in the House of Commons in London on May 9, 2018. (AFP photo)

UK Foreign Secretary Boris Johnson says his government has "no intention of walking away" from the Iran nuclear agreement, despite President Donald Trump’s decision to withdraw the United States from the deal.

Johnson who was speaking in Parliament told British MPs that the UK would "strive to preserve the gains" made by the international agreement.

Trump announced on Tuesday he will pull out, describing it as "defective at its core.”

Johnson said there is “a great deal of support” for the JCPOA and “a great deal of confusion” as to why President Trump wants to get rid of it.

Pointing to Trump, he also stated that anyone with an alternative solution to the problem of how to constrain, or ideas for a military solution, should come forward now and say what those solutions are.

The foreign secretary had tweeted on Tuesday that he deeply regrets Trump’s decision and had voiced support for the deal.

Deeply regret US decision to withdraw from the Iran nuclear deal. UK remains strongly committed to the JCPoA, and will work with E3 partners and the other parties to the deal to maintain it. Await more detail on US plan.

The opposition Labour Party has also condemned Trump’s decision accusing the US president of a "reckless, senseless and immoral act of diplomatic sabotage.”

May’s dismay with Trump

Labour’s strong words for Trump did not mean the Conservatives were fond of Trump. In a joint statement issued with her European counterparts, Conservative UK Prime Minister Theresa May said she regretted Donald Trump's decision to exit the 2015 agreement.

The group, which includes France and Germany, said the accord "remains important for our shared security." "We urge all sides to remain committed to its implementation and to act in a spirit of responsibility", the European heads of state wrote.

Meanwhile, The European Union's diplomatic chief Federica Mogherini has said the bloc is "determined to preserve" the Iran nuclear deal.

Mogherini made the remarks on Tuesday shortly after US President Donald Trump announced his decision to withdraw from the Joint Comprehensive Plan of Action (JCPOA.)

The 2015 agreement "is delivering on its goal which is guaranteeing that Iran doesn't develop nuclear weapons, the European Union is determined to preserve it," Mogherini added, warning that she was "particularly worried" by the US' announcement of fresh sanctions.

"Stay true to your commitments as we will stay true to ours and together with the rest of the international community we will preserve this nuclear deal," Mogherini added.