Sen. Ted Cruz, R-TX, defended himself on Twitter after a fact-checker claimed he was wrong about former President Obama, Iran and its "right" to have nuclear technology during a speech he gave last month.

In a series of tweets, Cruz described the fact-checkers as "partisan, left-wing liars" and said their fact-check of a speech he gave to the Hudson Institute, a Washington, D.C.-based think tank, last month was "ridiculous" and "self-refuting."

The Texas Republican then claimed the fact-checker misrepresented his words about the former president and then falsely rated his remarks.

"Of course, I didn’t say Obama said Iran had a ‘right’ to nuclear weapons… they laughably rate my statement ‘mostly false’ because Obama didn’t say…what I didn’t say he said," the senator tweeted.

TED CRUZ ACCUSES FBI DEPUTY DIRECTOR OF 'COVERING UP' DETAILS OF ALLEGED OF $5M BIDEN BRIBERY SCHEME

Ted Cruz

Sen. Ted Cruz, R-TX, took to Twitter to push back on a PolitiFact "mostly false" rating. (Anna Moneymaker/Getty Images)

The disagreement seems to stem from the use of the phrases "nuclear technology" and "nuclear weapons."

Speaking at the Hudson Institute on May 17, Cruz said Obama "gave a speech where he said Iran has a right to nuclear technology." The comment appears to reference an address the former president gave at the University of Cairo on June 4, 2009.

Later in his speech, no longer quoting Obama, Cruz added in his own words: "I gotta say, that’s utterly imbecilic. I’m familiar with the right to life, with the right to liberty, or the right to pursuit of happiness. I’m not familiar with the right to nuclear weapons. Only a fool would want the Ayatollah to have nuclear weapons."

TED CRUZ URGES FBI TO TURN OVER POTENTIAL EVIDENCE JOE BIDEN WAS INVOLVED IN $5M UKRAINIAN BRIBERY SCHEME

PolitiFact addressed the comments and determined his line about Obama’s speech was "mostly false" as the former president did not support Iran having "nuclear weapons."

But, as Cruz points out in his tweets, he said "nuclear technology" when quoting Obama — not "nuclear weapons," which he personally added later.

"I said Obama said Iran had a ‘right’ to ‘nuclear technology,’" Cruz wrote on Twitter. "He DID say that—as PolitiFact ADMITS—but they laughably rate my statement ‘mostly false’ because Obama didn’t say…what I didn’t say he said."

Iranian reactor

The Biden administration has failed to renegotiate a nuclear peace agreement initially put into place by the Obama administration. (ATTA KENARE/AFP via Getty Images)

The Texan added: "And, of course, they ignore my broader point: Iran doesn’t want nuclear technology bc they need electricity—they have tons of oil—the want nukes only to carry out their genocidal, theocratic war cry of ‘Death to America! and Death to Israel!’"

A Cruz spokesperson told Fox News Digital that "Iran floats on a sea of oil [and] the only use they have for nuclear technology is to build nuclear weapons."

"When they or their supporters talk about a ‘right’ to nuclear technology, that’s what they mean," the statement continued. "And that’s ultimately what the Ayatollah intends to do with the technology. That is also why, as we now know, Iran cheated throughout the disastrous Obama-era nuclear deal, which granted Iran nuclear rights and allowed Iran to maintain weapons plans."

In the 2009 address, Obama supported Iran's use of nuclear power but condemned any country from having nuclear weapons.

TED CRUZ REMINDS AOC HER OWN DEMOCRATIC PARTY FOUNDED KKK, WROTE JIM CROW LAWS

Obama said in 2009 that "any nation — including Iran — should have the right to access peaceful nuclear power if it complies with its responsibilities under the nuclear Non-Proliferation Treaty," according to an excerpt from the White House.

The former president went on to say he wanted "a world in which no nations hold nuclear weapons."

Obama in Cairo

US President Barack Obama delivered a speech in the Cairo University campus in Cairo during a one-day visit to Egypt on June 04, 2009.   (CRIS BOURONCLE/AFP via Getty Images)

His full quotation reads (emphasis added): "I understand those who protest that some countries have weapons that others do not. No single nation should pick and choose which nation holds nuclear weapons. And that’s why I strongly reaffirmed America’s commitment to seek a world in which no nations hold nuclear weapons. And any nation — including Iran — should have the right to access peaceful nuclear power if it complies with its responsibilities under the nuclear Non-Proliferation Treaty. That commitment is at the core of the treaty, and it must be kept for all who fully abide by it. And I’m hopeful that all countries in the region can share in this goal."

CLICK HERE TO GET THE FOX NEWS APP

Later in the speech, Obama applauded "nuclear energy" that is "used for peaceful purposes."

Cruz’s speech at the Washington, D.C. think tank addressed Russia’s ongoing invasion of Ukraine, which is nearing 500 days, its cooperation with Iran, the Biden administration’s response to the invasion and the events of the Obama administration which proceeded it.