President Trump’s decision to scrap the Iran nuke deal had a lot to do with Tehran’s decision to fire missiles at Israel late Wednesday.

First, the Iranians likely timed the attack to make it seem that the president had instantly made things worse in the region. That also explains why Iran’s Houthi proxies in Yemen shot missiles into Saudi Arabia hours after Trump’s nuke-deal news.

Second, Iran’s power in Syria and Yemen is itself in good part the result of Team Obama’s policies, including the nuke deal — which left Washington with few ways to respond to Tehran’s non­nuclear outrages while freeing up billions in cash to fund Iranian adventurism.

Happily, Israel’s hands aren’t tied. Iran’s launch of 20 missiles from Syria at Israeli military sites on the Golan “crossed a red line,” said Prime Minister Benjamin Netanyahu. Israel answered with devastating blows at 50 targets in Syria, taking out Iranian weapons depots, intel and logistics sites and Revolutionary Guard bases.

But this conflict has been building for months. In February, Iran flew an armed drone from Syria into Israel; Jerusalem responded to that, and to the growth of Iranian forces in Syria, with strikes of its own. Wednesday’s exchange was simply another round, and won’t be the last.

Iran surely hoped that European leaders, who want to save the deal, would blame Israel (and Trump) for Iran’s attack. Nope: Britain, France and Germany all backed Israel and condemned Iran’s strike. Even Russia, which sides with Tehran in defending Syrian dictator Bashar al-Assad, refrained from bashing Israel.

At least for now, Tehran is left with far less power in Syria. So Trump’s nuke-deal decision is already making the world a better place.