Iran warns Saudi Arabia of dire consequences
"You know the might and place of the Islamic republic. People more powerful than you have been unable to do anything against the Iranian people," Rouhani said.
"The United States and their allies have mobilised all their capabilities against us and achieved nothing."
Rouhani appeared to be alluding to the Iran-Iraq war of 1980-88, in which revolutionary Iran successfully resisted an invasion by Saddam Hussein´s regime supported by Gulf Arab and Western governments.
His comments came after Saudi Crown Prince Mohammed bin Salman accused Iran of delivering missiles to Yemeni rebels for use against targets in the kingdom that he described as "direct military aggression."
Iran strongly denied supplying any missiles to the rebels saying that it would have been impossible to do so in any case in the face of a Saudi-led air and sea blockade.
Rouhani reiterated that Iran wanted a peaceful settlement of the conflict between the rebels and the Saudi-backed Yemeni government and of other wars around the region that have placed it at loggerheads with Riyadh.
"We want the welfare and development of Yemen, Iraq and Syria, and of Saudi Arabia too. There are no other paths forward than friendship, brotherhood and mutual assistance," he said.
"If you think that Iran is not your friend and that the United States and the Zionist regime (Israel) are, you are making a strategic and analytical error."