Islamic Fundamentalist states, get along fabulously with conservative US administrations (or US administrations in general). Saudi Arabia, Kuwait, UAE...
The Persian Empire ceased to exit in 331 BCE. I try to refer to Iranians as Iranians :-)
The Shah was there, long before we got to the scene, but western powers have long exploited the natural resources of other countries. In the case of post WWII Iran, the British, and BP, felt that they own Iran's oil.
The Shah was corrupt, but weak. So, in 1953, when the democratically elected PM, tried his hands at reforms, that would give Iran a say, in how its natural resources are used, the British convinced to Eisenhower that Iran is going communist. The Shah had fled Iran, fearing that he might lose his money.
So the British and the US staged a coup, forcing the Shah to return to Iran, and deposing Musaddagh. What followed was the rise of Iran's secret police, jailing/torture/executions of opposition figures, mass corruption, the parceling out of government contracts to the Shah's entourage, etc.
What on the surface looked like a country that looked up to the US, was actually a minority, making a fabulous living, thanks to the privileges handed to them by the Shah and the US, and a vast majority, living in poverty, abused, neglected and uneducated.
That's when religion came in, and promised a better life. They also did not forget the root cause of their problems: the USA.
The first US President to acknowledge that, was Barack Obama. During his first foreign trip, he gave a speech at Cairo University, where he did a mea culpa, hoping that would fix things. It did not, and the hardliners insisted that it's temporary, and US Presidents come and go. And, of course, Obama went, and Trump came.