In a sharp but expected departure from US policy, President Trump said Friday he would decertify the deal on Iran’s nuclear program and kick it back to Congress so lawmakers could make it tougher.

“As president of United States, my highest obligation is to ensure the safety and security of the American people,” the president said, adding that he is determined that “Iran will never get a nuclear weapon.”

Trump wants lawmakers to change legislation — known as the Iran Nuclear Agreement Review Act — that requires the president to certify every 90 days that Iran is in compliance with the 2015 deal.

The president railed against Iran’s “destabilizing influence” in the Middle East, “particularly its support for terrorism and militants.”

Iran vowed, meanwhile, to retaliate against any action targeting its armed forces, and accused the US of violating the spirit of the nuclear deal.

“Iran will strongly respond to any action against its military forces, including the Revolutionary Guards Corps,” Foreign Ministry spokesman Bahram Qasemi said Friday, Reuters reported.

He added that Iran would continue to expand its defensive power — including its ballistic missile program.

Trump’s new strategy includes three key goals:

Rework the deal to make it harder for Iran to develop a nuclear weapon.

Ensure that it addresses the Islamic theocracy’s ballistic missile program to lessen the threat of attacks on Israel and other nations.

Counter Iranian support for terrorists and other bad actors in the region who the White House says contribute to Mideast instability.

The complicated move puts the Trump administration on a political and diplomatic tightrope.

The US will technically remain in the pact even though Trump’s repeatedly slammed it as “embarrassing” and the “worst deal ever.”

But by refusing to certify the merits of the deal, he’s putting its fate on lawmakers’ shoulders and asking them to deliver something the GOP-led Congress has failed to give him — a major piece of legislation.

But Secretary of State Rex Tillerson was wary about the prospects of a new accord.

“What we are laying out here is this is the pathway we think provides us the best platform from which to attempt to fix this deal. We may be unsuccessful. We may not be able to fix it. And if we’re not, then we may end up out of the deal,” he said, Reuters reported.

Trump wants Congress to pass new legislation within three months to automatically reimpose tough sanctions if Iran crosses certain lines related to nuclear activity and its ballistic missile program.

The administration hopes the move will pressure other parties to the deal — Britain, China, France, Germany and Russia — to open talks on a new deal.

But all of them have urged the US not to pull out of the accord, saying it cannot be renegotiated — as have many Democrats and Republicans alike in Congress.

Trump also announced that the Treasury Department would impose new sanctions against people involved with the Iranian Revolutionary Guards, which he says supports terrorists.

The International Atomic Energy Agency, the UN body charged with monitoring the nuclear deal, has repeatedly said Iran is in compliance with the deal, and Trump had certified it twice already in his nascent presidency.

In response to the president’s action, lawmakers can do nothing, pass Trump’s new legislation, or choose to reinstate all the Iran sanctions and effectively blow up the pact.

Trump’s actions on the Iran deal have made lawmakers uneasy — even those who were strongly opposed to the nuclear pact.

“As flawed as the deal is, I believe we must now enforce the hell out of it,” House Foreign Affairs Committee Chairman Ed Royce (R-Calif.) said Wednesday.

“Let’s do it right,” Iran deal opponent Rep. Eliot Engel (D-NY) said Thursday.

“Don’t blow up the agreement to save it. We’ll come out worse in the end. … But this talk of decertifying the agreement, then kicking it to Congress for some sort of magical fix just doesn’t make sense.”

Meanwhile, a pair of top Republicans unveiled a plan Friday to carry out Trump’s directive to change the law that requires him to certify Iran’s compliance with the nuclear deal every 90 days.

The bill, from Senate Foreign Relations Chairman Bob Corker (R-Tenn.) and Iran hawk Sen. Tom Cotton (R-Ark.), is intended to address issues they see in the nuclear deal itself, according to a fact sheet from Corker’s office.