Joe Biden will rewind the clock on American foreign policy back to the Obama administration if he’s elected president, the former veep said during a speech at the CUNY Graduate Center on Thursday.

That includes a return to the Iran nuclear deal — adopted under Obama in 2015 and abandoned by President Trump last year — renewed support for NATO and additional focus on an Obama-era program that traded aid for Central American leaders’ commitments to tamp down various crises that are sending migrants streaming to America’s doorstep.

“We cannot be a credible voice on proliferation of nuclear security while we’re abandoning the very deals we had negotiated,” Biden said.

“Trump has made the prospect of a nuclear arms race more likely, not less. If Tehran returns to compliance with the deal, I’d rejoin the agreement.”

Biden, who called Trump an “extreme” threat to national security, said the Obama administration crafted the “military and diplomatic campaign that ultimately defeated ISIS,” and argued that Trump stole its thunder by claiming victory over the group.