Shortly after President Donald Trump announced the dismissal of his top diplomat on Twitter, he told reporters outside the White House that their different opinions on the Iran nuclear deal contributed to his decision to fire Secretary of State Rex Tillerson.
Interested in Trump Administration?Add Trump Administration as an interest to stay up to date on the latest Trump Administration news, video, and analysis from ABC News.
Trump wants to replace Tillerson with current CIA director Mike Pompeo, a fierce critic of the Iran deal who once called the agreement "disastrous."
"Rex and I have been talking about this for a long time. We got along actually quite well but we disagreed on things," Trump said Tuesday morning.
"When you look at the Iran Deal. I thought it was terrible. He thought it was okay," Trump said. "I wanted to either break it or do something, he felt a little differently. So we were not really thinking the same."
But Tillerson was not alone in his view that the international agreement - which restricts Iran's enrichment of uranium and its stockpiles - should stay.
Defense Secretary James Mattis told Congress last October that it's in America's national security interest to keep the agreement.
"If we can confirm that Iran is living by the agreement, if we can determine that this is in our best interest, then clearly, we should stay with it," Mattis said. "I believe, at this point in time, absent indications to the contrary, it is something the president should consider staying with."
Trump, in contrast, has repeatedly called it one of the "worst deals" in U.S. history, and in January threatened to withdraw the U.S. unless European allies worked with the administration to sanction Iran's ballistic missile program and combat its other "malign" behavior.
Mattis' view backs up those of his top generals, including the head of U.S. Central Command, who told senators on Tuesday that the deal is in America's national security interests, saying it "addresses one of the principal threats that we deal with from Iran."
Gen. Joseph Votel added that if the agreement goes away, the U.S. will need "another way" to deal with Iran's nuclear weapons.
In September, the chairman of the Joint Chiefs of Staff, Gen. Joseph Dunford, told Congress that the intelligence community's assessment was that Iran was in compliance with the deal, and therefore the U.S. should "focus on addressing the other challenges" posed by Iran.
Dunford warned that "holding up agreements that we have signed, unless there's a material breach, would have an impact on others' willingness to sign agreements."
Trump and Tillerson disagreed on several top foreign policy issues beyond the Iran deal, including North Korea, the Paris Climate accord, and multilateral trade deals like NAFTA and TPP.
But the differences became personal when, in October, Tillerson would not directly deny reports that he called the president a “moron.” Trump shot back with allegations that he was smarter than his top diplomat, saying the two should "compare IQ tests."
Fourteen months into the Trump administration, Mattis has avoided the scrutiny from his boss directed at so many of his colleagues.
If Tillerson wasn't in lockstep with Trump, Mattis has given off the impression that the two had a close relationship and were often allies. Most recently, both Tillerson and Mattis opposed tariffs on steel and aluminum.
In January, Mattis said he spoke with Tillerson "two, three times a day" and shared weekly breakfasts.
Now, Mattis will adopt that working relationship with Pompeo, with whom he already interacts frequently as CIA director.