It's their only play, really.
I mean, can US and its allies exactly stop at status quo?
Iran just learnt it can missile nearby neighbors and demand $2M toll fee on the strait users...
even if US just backs down from "epic wut", will iran become "the good guy" and never missile neighbors and stop demanding that $2M toll?
nope: rather, that would mean US and allies will lose its deterrence against Iran completely
iran'll start bullying more on those neighbors, and the toll fee will go up: $2M to $5M to $10M to... even $100M -- I mean, what's stopping iran from doing so?
anyway, I'm just surprised everyone in this forum is trying their best only to say "trump is such an idiot to start the war (well duh?)", and not to look at what choices each nations had/have after trump's dickhead move
Iran was NOT bombing its neighbours and demanding Hormuz toll before the war. Not even after it was bombed last June.
If they had not responded strongly, USA/Israel would keep periodically 'mowing the lawn', not acceptable to any country, especially not for a big and proud nation like Iran.
Btw, the US military bases in Gulf countries are legitimate military targets, and have born the brunt of Iran's attacks. It is just that in our western media the focus is on any civilian damages, and almost all damages to military is hushed up.
Iran has no good way to prevent future attacks (nobody sane would believe any agreement signed by USA), their only way is to make sure beyond any doubt that attacking them again will hurt VERY, VERY much. As a side note, getting rid of USA military bases in the Gulf would be beneficial to them in making any future attacks on them more difficult. Hence the (very true!) messaging 'the USA military bases are not there to protect you, but to help them project power over us (and you!), and are only making you a target, reducing your security, not increasing it'.