TEHRAN, Iran  Iran’s Supreme Leader said Saturday that his country was not seeking nuclear weapons, but that if Tehran intended to build them, the U.S. couldn’t stop it.

Ayatollah Ali Khamenei, who has the final say on all state matters in Iran, also rejected direct talks with the U.S. over its nuclear program despite the pressure of sanctions.

“We believe nuclear weapons must be abolished and we have no intention of building” such weaponry, Khamenei said in remarks posted on his website, leader.ir. But he added: “If Iran had the intention to build nuclear weapons, the U.S. could in no way stop the Iranian nation.”

He said Tehran would hold talks with the U.S. if Washington respects Iran’s rights instead of resorting to bullying.

“They want to deny the Iranian nation of its definite and inalienable right to uranium enrichment and peaceful use of nuclear energy. Of course, they won’t succeed,” Khamenei said.

Addressing a group of Iranians at his home in the capital, Tehran, Khamenei also scolded President Mahmoud Ahmadinejad and his conservative rivals for factional fighting, saying they should unite rather than quarrel at a time when the West was stepping up sanctions on Iran.

Iran recently has highlighted a religious decree Khamenei issued more than seven years ago that bans nuclear weapons in an effort to back up its claim that Tehran’s nuclear program is being used for peaceful purposes and medical research. Iran authorities often cite the decree to counter Western suspicions that Iran could ultimately move toward an atomic bomb.

Although Iran views Khamenei’s 2005 fatwa as a binding declaration, the West and its allies have repeatedly accused Iran of using any tactic to prolong the standoff over its nuclear program, and possibly advance its nuclear capabilities. Iran denies such aspirations, insisting it is enriching only to make reactor fuel and to make isotopes for medical purposes.

Tehran, however, has left U.N. nuclear inspectors empty-handed when it comes to addressing Western suspicions that it’s conducting tests related to nuclear weapons. Three rounds of talks last year made no headway on the West’s main demand: That Iran halt its highest-level uranium enrichment.

Washington and others worry that this level of nuclear fuel, at 20 percent enrichment, could be turned into warhead-grade material much faster than the 3.5 percent enriched uranium needed for Iran’s lone energy-producing reactor. Moreover, the U.S. has expressed concern that Iran and the International Atomic Energy Agency had not agreed to let inspectors visit a military site, known as Parchin, where the U.N. agency suspects Iran might have carried out nuclear weapon trigger tests.