The recent conflicts in the Middle East have ignited open debate among Iran’s political elite over whether the country should weaponize its vast nuclear program. The rationale for doing so, from Iranian leadership’s perspective, appears more convincing than ever.

Above all, Iran needs to reestablish deterrence equilibrium with its longtime foes Israel and the United States. Traditionally, to deter its adversaries from attacking or implementing regime change, Tehran relied on a three-pronged approach focused on missiles, militias, and a nuclear program.

The recent conflicts in the Middle East have ignited open debate among Iran’s political elite over whether the country should weaponize its vast nuclear program. The rationale for doing so, from Iranian leadership’s perspective, appears more convincing than ever.

Above all, Iran needs to reestablish deterrence equilibrium with its longtime foes Israel and the United States. Traditionally, to deter its adversaries from attacking or implementing regime change, Tehran relied on a three-pronged approach focused on missiles, militias, and a nuclear program.

To offset its weak air force, Iran invested heavily in its missiles program, making its arsenal one of the most advanced in the region. Iran also anchors its asymmetric warfare strategy through the so-called “forward defense” policy of using militarized nonstate actors to encircle Israel and the U.S. regional military presence and to mobilize these forces to attack if required. Iran has cultivated its relations with groups that are hostile to the United States and Israel, building the so-called Axis of Resistance, providing them with arms—including sophisticated missiles and drones—as well as training and financial support.

However, Iran’s missiles capabilities and the Axis of Resistance have taken a hit in recent months. The Israeli onslaught against Iran’s most trusted partner, Hezbollah in Lebanon, has delivered a blow to its arsenal, fighters, and command and control structure. Iran was left humiliated by Israel’s ability to assassinate Hamas leader Ismail Haniyeh while he was in Tehran this summer. Following the killing of Hamas leader Yahya Sinwar this month, Israel seems determined to keep upping the ante to establish a new regional order.

Although Hamas and Hezbollah will continue to undermine Israeli security, the ability of these groups to mobilize in defense of Iran seems severely diminished while they fight for their own survival. Meanwhile, the United States has doubled down on its efforts to shield Israel, moving new anti-missile systems into the country, together with American troops to operate them, in a bid to defang future attacks from Iran and its allies.

Perhaps Iran’s biggest Achilles’s heel is its self-restraint. Over the past year, Iran’s supreme leader, Ayatollah Ali Khamenei, has repeatedly held back from a direct war with Israel and the United States. He has also shied away from triggering a full assault by the Axis of Resistance front. Israel has interpreted this restraint as a weakness and exploited it.

This shift in regional deterrence has strengthened the argument in Tehran favoring a nuclear umbrella. Iran has already obtained nuclear threshold status, placing it at the tipping point of weaponization. Iran can develop enough material for a nuclear bomb in just over a week, with some experts assessing that it could build a nuclear warhead to carry these bombs within several months. In the same way that India and Pakistan achieved a relative cold peace, Tehran may look to check Israeli behavior through rebalancing the nuclear playing field.

Another argument for why Iran could dash for the bomb is that the country has already paid the high cost of becoming a nuclear weapons state without receiving the perceived benefits of having the bomb.

Ever since the Trump administration withdrew from the 2015 nuclear deal, which Iran was in full compliance with at the time, the United States has imposed its largest-scale sanctions to date against Iran. Western relations with Tehran further plummeted over Iran’s abysmal human rights record, its regional posture, and military assistance to Russia during its full-scale invasion of Ukraine. Given the anti-Iran sentiment across Western capitals, the Iranian leadership would be correct to conclude that major U.S. sanctions relief of the type seen in 2015 is not on the horizon. If Iran is already being treated as a nuclear pariah state by the West, then why not secure the perceived security benefits of going nuclear?

Finally, the broader geopolitical conditions today mean the costs associated with Iran becoming a nuclear state are lower than a decade ago. Tensions between world powers now make it increasingly unlikely that Russia, and possibly China, will stand in Iran’s way. Tehran can also capitalize on the Ukraine war by pushing to trade its military equipment—which Moscow desperately needs—for Russian nuclear know-how, technology, and defense at the U.N. Security Council. The United States already fears this could be happening.

Against this backdrop, those inside Iran favoring nuclear weaponization likely see two choices ahead: either Iran’s nuclear facilities are eventually destroyed by Israel and the United States first, and then Tehran stumbles toward nuclear weapons over a longer timeframe with depleted resources, or Iran starts the weaponization now while it has advanced nuclear capabilities and Israel is bogged down in Gaza and Lebanon. Iranian strategists may be swayed for the latter option when faced with a weakened Axis of Resistance, a formidable Israeli-U.S. military force and an Israel poised to strike at Iranian nuclear sites. Despite the strong likelihood that the country will be bombed throughout this process by Israel and the United States, Iran’s leadership may conclude it can bear the brunt of military action and come out of it stronger.

Following the hits Iran has taken to its deterrence capabilities, there is an acute risk of Iran reaching for the bomb. Western governments should act now to shape the internal debate inside Iran to avoid this outcome. A nuclear Iran can act with greater impunity at home and abroad. It will almost certainly trigger a nuclear arms race across the Middle East. This outcome would make a region close to Europe even more dangerous, not just because of the increased risk of violent conflict among states but also the risk of terrorist groups gaining access to nuclear weapons.

Western governments need to warn Iran’s leaders that if they decide to weaponize the country’s nuclear program, it will backfire. Becoming a nuclear state will likely offer Iran’s leaders greater guarantees against large-scale military intervention and externally imposed regime change. But it will expose Iran to vicious cycles of military strikes, cyberattacks, and assassinations. Future Iranian nuclear weapons will not deter Israel against striking Iran—just as Tehran was not deterred against taking the unprecedented step this year of barraging Israel, itself a nuclear power, with missiles.

Over the past year, Europe and the United States have not seriously pursued a political off-ramp with Tehran. The United States has been trapped—by both Israeli and Iranian conduct—into an escalation cycle and seems willing to only play a military card. Absent a political agenda, Iran’s dash to the bomb is becoming a self-fulfilling prophecy. History reveals that the more the United States and Israel carry out attacks inside Iran, the more Iran inches closer to the bomb.

The instances when Washington and Europe have shifted Iranian calculations away from weaponization involved serious diplomacy. The new Iranian government comprises technocrats who have a long history of supporting negotiations with Europe and the United States and have implemented the deals struck. Iran’s new reform-minded president, Masoud Pezeshkian, has amplified his government’s openness to diplomacy with the West—and this intent must now be put to the test.

In this diplomatic endeavor, a coalition of willing Western governments should ally themselves with Arab countries such as Saudi Arabia, the United Arab Emirates, Qatar, and Iraq, which among them have notable influence with Iran, Israel, and the United States. A new track of pursuing diplomacy with Iran within a coalition of regional actors is the best door opener for the West to prevent the Iran-Israel war spiraling out of control and to wedge open wider space to reduce tensions on other issues.

While there is considerable distrust between Iran and the West at this moment, both sides need to engage in transactional hard-nosed diplomacy to make a course correction. Otherwise, the current path will lead to the worst of all worlds.