President Mahmoud Ahmadinejad told a military parade in Tehran on Tuesday Iran would "cut off the hands" of anyone who attacked the country.
"Iranian armed forces will cut off the hands of any attackers before they pull the trigger," he said in an address at a parade broadcast on state television to mark the start of the Iran-Iraq war in September 1980.
"No power in the world is daring enough to attack Iran as we are more experienced and powerful than ever," Ahmadinejad said.
The United States and its allies are seeking to intensify U.N. sanctions on Iran over the Islamic country's disputed nuclear programme, which the West fears is intended to build nuclear weapons. Iran has repeatedly denied this.
Iran has repeatedly condemned the military presence of the U.S. and its allies in neighbouring countries.
"The roots of all conflicts in the region is the presence of foreign troops," Ahmadinejad said.
Washington and Israel do not rule out military action against Iran over the nuclear issue.
Tehran will hold talks on October 1 with major powers worried about the Islamic Republic's nuclear strategy.