President Trump criticized Iran on Thursday for failing to uphold the "spirit" of a nuclear agreement spearheaded by the Obama administration.

"It was a terrible agreement. It shouldn't have been signed. It shouldn't have been negotiated the way it was negotiated," Trump said during a joint press conference Thursday with Italian Prime Minister Matteo Paolo Gentiloni.

"I'm all for agreements, but that was a bad one, as bad as I've ever seen negotiated," Trump continued. "They are not living up to the spirit of the agreement, I can tell you that, and we're analyzing it very, very carefully and will have something to say about it in the not-too-distant future, but Iran has not lived up to the spirit of the agreement, and they have to do that."

His comments came just days after Secretary of State Rex Tillerson confirmed to Congress that Iran had complied with the letter of the Joint Comprehensive Plan of Action (JCPOA). However, Tillerson announced that Trump had directed his National Security Council to review whether the continued suspension of sanctions under the deal was in the national security interest of the U.S.

Tillerson also slammed Iran for its state sponsorship of terrorists in Syria, Yemen and across the region.Trump, who vowed on the campaign trail to tear up the Iran deal, has continued to criticize the circumstances under which his predecessor negotiated the JCPOA.