First of all, Iran is an important oil exporter and has a major conflict of interest with the United States economically. Because the United States is also a very important oil exporter. Iran is very angry because the United States exported a lot of oil and turned a part of the shares that originally belonged to Iran into Americans. Even took such a crazy move to attack oil tankers in other countries. Of course, this has also been subject to very severe economic sanctions from the United States.
Of course, from the interests of the United States, Iran is a very influential country in the Middle East. However, due to many unpleasant incidents between Iran and the United States, the two countries are more competitors than partners in the Middle East. More importantly, Iran has studied the development of nuclear weapons, which also poses a great security threat to American military bases in the Middle East and American allies. This is why the United States and Iran are so reluctant to deal with it.
So the reason why the two countries are hostile is also because of the huge conflict in economic and military power. But Iran is at a disadvantage from the beginning, because Iran is not a country with a very developed oil industry and other industries. Moreover, it relies more on oil exports, and because oil trade is settled in dollars, it is very easy for the United States to sanction Iran.