Saudi Arabia will seek to develop its own nuclear weapons if Iran does, Foreign Minister Adel al-Jubeir said on Wednesday, amid spiralling tension between the regional rivals.

Saudi Arabia will seek to develop its own nuclear weapons if Iran does, Foreign Minister Adel al-Jubeir told CNN on Wednesday, amid spiralling tension between the regional rivals.

Asked whether Riyadh would "build a bomb itself" if Tehran seizes on Washington's withdrawal from the 2015 Iran deal to resume a nuclear weapons program, Jubeir said: "If Iran acquires nuclear capability we will do everything we can to do the same."

Oil-rich Saudi Arabia has long said it would match any Iranian weapons development, but Jubeir's renewed vow came after US President Donald Trump pulled the United States out of an accord designed to prevent Tehran's alleged quest for the bomb.

And it came amid growing tension between the Sunni kingdom and the Shia Islamic republic over Iran's support for the Houthi rebels in Yemen, who have been firing rockets across the border.

Riyadh, which leads a regional coalition that intervened in Yemen's civil war to fight the Houthis, accuses Iran of supplying the militia with ballistic missiles.

"These missiles are Iranian manufactured and delivered to the Houthis. Such behaviour is unacceptable. It violates UN Resolutions with regards to ballistic missiles. And the Iranians must be held accountable for this," Jubeir told CNN.

"We will find the right way and at the right time to respond to this," he warned. "We are trying to avoid at all costs direct military action with Iran, but Iran's behaviour such as this cannot continue. This amounts to a declaration of war."