Mahmoud Ahmadinejad's remarks underscored Tehran's defiance amid the nuclear standoff — and also sought to send a message that his government had not been weakened by the protest movement sparked by June's disputed presidential election.
His comments came a day after the latest opposition protest by tens of thousands mourning a dissident cleric who died over the weekend.
President Barack Obama has set a rough deadline of the end of this year for Iran to respond to an offer of dialogue and show that it will allay fears of weapons development. Washington and its allies are warning of new, tougher sanctions on Iran if it doesn't respond.
The U.N.-proposed deal is the centerpiece of the West's diplomatic effort. Under the deal, Tehran would ship most of its stockpile of low-enriched uranium abroad to be processed into fuel rods, which would ease the West's fears that the material could be used to produce a nuclear weapon.
Iran, which denies it seeks to build a bomb, has balked at the deal's terms.
The international community can give Iran "as many deadlines as they want, we don't care," Ahmadinejad said in a speech to thousands of supporters in the southern city of Shiraz.
Ahmadinejad dismissed the threat of sanctions, saying Iran wants talks "under just conditions where there is mutual respect."
"We told you that we are not afraid of sanctions against us and we are not intimidated," he said, addressing the West. "If Iran wanted to make a bomb, we would be brave enough to tell you."
"This nuclear game thing is an old story, it's history now," the Iranian leader said, as the crowd cheered: "We love you, Ahmadinejad." He lashed out at Washington, vowing Iran will stand up against U.S. attempts to "dominate the Middle East."
More at FoxNews